Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3288 Переглядів

Hi,

we want to change the color of a special item in the list view, e.g. when the name contains "test" or name is "test".

<tree colors=blue:name == 'test'">

in the view does not work. How can we realize that?

Thanks!

Аватар
Відмінити
Найкраща відповідь

Below i am posting the code example  for reference

<tree string="My tree View" colors="red:state in ['cancel','close'];#64B5F6:state=='running';#0D47A1:state=='extend';green:state=='complete';#FF4081:state=='finish'" > 

Hope this  may help you in understanding the tree color pattern .



Аватар
Відмінити
Найкраща відповідь

Peter,

try like this.

<tree colors="blue:<field_name> == <value>;red: <field_name> == <value>" >

Hope it will help

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
груд. 23
20171
3
квіт. 24
2400
0
груд. 19
5680
2
жовт. 22
5804
3
серп. 22
7439