Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3973 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Hello Mr. Lee,

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
1395
0
thg 11 24
1580
4
thg 6 25
47289
0
thg 6 24
1616
1
thg 6 24
2136