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

I tried to use colors="red" in my o2m treeview xml file, but it don't have any effects.


I want to color the background color of the row, not the  value


How can I achieve this?

الصورة الرمزية
إهمال
أفضل إجابة

 Hi,

   You can use decoration-info,decoration-muted,decoration-danger attributes.You can check it in the code for examples

<tree decoration-info="state == 'draft'" decoration-muted="state == 'closed'" decoration-danger="state == 'revoked'"/>                 

الصورة الرمزية
إهمال
الكاتب

Hello Mr. Lee,

I used this attr but it colors the value, i want to color the cells of a row

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 25
1659
0
نوفمبر 24
1694
4
يونيو 25
47447
0
يونيو 24
1694
1
يونيو 24
2199