Hi everyone!
Very simple question :
I'm trying to show/hide a widget in multiple ways. How can I add two variables in this form : @{} in the same widget's property (visible property in this case).
Thanks a lot!
Hi everyone!
Very simple question :
I'm trying to show/hide a widget in multiple ways. How can I add two variables in this form : @{} in the same widget's property (visible property in this case).
Thanks a lot!
One way you could use, is using the #{}
block.
For example, this syntax sets visibility of a widget if one of the a
or b
widget's value is true
:
#{@{wdiget_a} || @{wdiget_b}}
But if you want the widget visibility be controlled independently by numerous other widgets, you can use VAR{"var_name", false}
in the visibility prop of the widget to be controlled and use setVar("widget_id", "var_name", true)
inside the onValue
script prop of the other widgets.
Hope it helps.
Exactly what I was looking for.
Thanks!
I forgot a curly braces in the #{} block example. It's now corrected.