Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1914 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
серп. 24
3517
1
груд. 23
3067
1
лип. 22
3935
0
бер. 17
2887
0
жовт. 24
928