Define refresh not work. is a Bug ?

Hi,

When try to change background color in ha label, only work first time, check snippet.

I need change color in any moment?

https://snippet.webix.com/ym9v7ezx

Thanks in advance!!

Hi,

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.

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.