跳至內容
選單
此問題已被標幟
2 回覆
3233 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 23
20107
3
4月 24
2400
0
12月 19
5634
2
10月 22
5738
3
8月 22
7328