lovasoa / SQLpage

SQL-only webapp builder, empowering data analysts to build websites and applications quickly
https://sql.ophir.dev
MIT License
895 stars 63 forks source link

Support id/class in built-in components #182

Closed lorefnon closed 6 months ago

lorefnon commented 6 months ago

Hello, currently some of the components support id/class like the form components.

I'd like to propose that these be supported in all the built in components where it makes sense.

I am primarily interested in id which is useful for anchor targeting (<a href="#id">Some panel</a>). It makes it possible to have links that scroll to a particular card or chart. For components that have a top level container, the id can be added to the container, and for those that don't have it can be added as a separate anchor.

class is nice to have for styling convenience.

Hope this feature is acceptable. Happy to revise if you have any suggestions.

lorefnon commented 6 months ago

Hi @lovasoa - I have added the docs and updated as per above comments.