2018-03-13, 12:05
Title explains everything. This will save a looooooot of lines.
Example of the current situation:
I have a variable called $VAR[sub_label] with 50< conditions.
If I want to move a label control a few pixels to the bottom within a list - because the sub_label variable is empty - I'll have to add all those conditions as visiblity condition too.
Edit:
Example use case
Example of the current situation:
I have a variable called $VAR[sub_label] with 50< conditions.
If I want to move a label control a few pixels to the bottom within a list - because the sub_label variable is empty - I'll have to add all those conditions as visiblity condition too.
Edit:
Example use case
Code:
<variable name="example">
<value condition="String.IsEqual(ListItem.DBType,movie)">Another movie</value>
<value condition="String.IsEqual(ListItem.DBType,tvshow)">Another tvshow</value>
</variable>
Code:
<control type="list">
...
<itemlayout>
<control type="label">
<label>My Label</label>
<animation effect="slide" end="0,10" time="0" condition="Var.IsEmpty(example)">Conditional</animation>
</control>
<control type="label">
<top>20</top>
<label>$VAR[example]</label>
</control>
</itemlayout>
<focusedlayout>
<control type="label">
<label>My Label</label>
<animation effect="slide" end="0,10" time="0" condition="Var.IsEmpty(example)">Conditional</animation>
</control>
<control type="label">
<top>20</top>
<label>$VAR[example]</label>
</control>
</focusedlayout>
</control>