|
Hi, I have a simple question. I would like to set the background color of a tile according to some condition. Think about a chessboard where every second tile is white. However, I do not want to hardcode color values in the logic/model, only in the widget. What I am after is something like this: The docs have two sections, one about conditional statements and the other about conditional elements, but none of them is exactly what I want here. Is this feature there just not in the docs, or is this something missing? Thank you for your help! |
Answered by
ogoffart
Oct 11, 2021
Replies: 1 comment 1 reply
|
We support the ternary operator like in C or JS: I realize this is badly documented, so i'll improve on that. |
1 reply
Answer selected by
drewhk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We support the ternary operator like in C or JS:
I realize this is badly documented, so i'll improve on that.