Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4000 Näkymät

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?

Avatar
Hylkää
Paras vastaus

 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'"/>                 

Avatar
Hylkää
Tekijä

Hello Mr. Lee,

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 25
1483
0
marrask. 24
1627
4
kesäk. 25
47371
0
kesäk. 24
1641
1
kesäk. 24
2166