Example of css and class in HTML section configuration file

Grettings everyone.

I saw in the documentation of Tryton that I can use a customization of CSS and Class Configuration file — Tryton server,

Does anyone have used it and could provide an example? really appreciate.

Thanks

For css, you must define a list of URL that contains your custom CSS rules.
And for class, it is just like the class attribute that you will put in HTML.

Greetings, everyone!

We are currently exploring how this property works in the configuration file, and we’ve found the following:

In the file ir/action.py,

We identified a use case similar to the “plugins” tag. We are using this as a reference to create a CLASS tag by adding the following section to the Tryton configuration file:

[html]
class-model_name-field_name=text-success

However, it is not working yet.

The configuration is about loading a specific CSS file when editing via the HTML editor the content of a Text field.

I suspect you think this will add a class to the widget in the client but this configuration is not about that. And there is no way to do that.