Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1916 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ago 24
3518
1
dic 23
3070
1
lug 22
3939
0
mar 17
2889
0
ott 24
933