Skip to Content
Menu
This question has been flagged
1 Atsakyti
1895 Rodiniai

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.

Portretas
Atmesti
Best Answer

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)"

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
rugp. 24
3510
1
gruod. 23
3060
1
liep. 22
3928
0
kov. 17
2881
0
spal. 24
923