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

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
3654
1
груд. 23
3265
1
лип. 22
4038
0
бер. 17
2987
0
жовт. 24
1012