When try to change background color in ha label, only work first time, check snippet.
I need change color in any moment?
Thanks in advance!!
Nope, it is not a bug.
The css property is a peculiar one:once set, it appends the new class name to the component HTML, e.g.: webix_view webix_control webix_el_label s1551717166643. It can be a custom one or can be automatically created from object rules, as in the provided string. It does not remove any previously defined classnames.
webix_view webix_control webix_el_label s1551717166643
So the API works as expected. The correct solution for dynamic styles is using webix.html methods, as shown in the commented lines in your snippet.
Thanks so much Helga.
It looks like you're new here. If you want to get involved, click one of these buttons!