Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3178 Tampilan

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!

Avatar
Buang
Jawaban Terbai

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 .



Avatar
Buang
Jawaban Terbai

Peter,

try like this.

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

Hope it will help

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Des 23
19999
3
Apr 24
2400
0
Des 19
5534
2
Okt 22
5612
3
Agu 22
7144