-
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! |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
We support the ternary operator like in C or JS:
I realize this is badly documented, so i'll improve on that.