تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3236 أدوات العرض

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
ديسمبر 23
20108
3
أبريل 24
2400
0
ديسمبر 19
5636
2
أكتوبر 22
5740
3
أغسطس 22
7329