跳至内容
菜单
此问题已终结
1 回复
1918 查看

Hello i want to change the color of a gantt chart depending on state like:

gray: cancelled

blue: draft

green: done

PS: I've already set the "color" attribute to "state" but it gives me random color for each state.

Thank you.

形象
丢弃
最佳答案

you can use this
decoration-danger="json_popover and 'text-danger' in json_popover" decoration-success="state == 'done'" decoration-warning="state == 'cancel' or (json_popover and 'text-warning' in json_popover)"

形象
丢弃
相关帖文 回复 查看 活动
2
8月 24
3519
1
12月 23
3080
1
7月 22
3940
0
3月 17
2895
0
10月 24
934