Request: Add "Class Name" to easily apply javascript/css functionality

Hello Softrs,

I recommended a “specify class names feature” in a direct chat to support, but I think it should be made visible for comment. What I would like to do is be able to add a class name on each Action Button or Content Field that I configure.

I imagine a good way to do this, so as not to clutter up the UI would be to have a toggle in the User preferences page which is to ‘enable advanced functionality’ and this would be intended for users who are coders or having to solve some of the more complex problems with code. Once unlocked, an input field would be visible on these objects, Class name _________.

By being able to set a class name to these objects, they can be accessed with javascript, the CSS declarations can be exact and simplified, and supporting CSS and javascript user confusion would require less input from Softr forum leaders.

Why not specify an ID? IMO, since id values must be unique per page, the possibility to create duplication is too great.

I am sure there is other advanced functionality that this could unlock too, such as forwarding URL parameters… my current roadblock. :wink:

4 Likes

This is i think one where one should ask wether or not this is a no-code tool or not :stuck_out_tongue: I agree it would be handy but building your UI with coding in mind is kind of counterintuitive to what SOFTR is trying to achieve? Just my 2 cents

1 Like

Hi,
+1 on this. There is why:
We use Plausible as analitycs and it need class.
We want to create some generic class for branding our projects
We can call and use distant css branding or framework

But I can this the pitfall : where does the class apply ? Div Container ? Section ? …