(Replacing message template with parser tag) |
(Updated Edited template to July 12, 2025.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<message>Write the content here to display this box</message> | <message>Write the content here to display this box</message> | ||
In the ViewModelEditor, when selecting a ViewModelColumn, you see this: | In the ViewModelEditor, when selecting a ViewModelColumn, you see this: | ||
[[File:FollowEnable 1704890566909.png|none|thumb| | [[File:FollowEnable 1704890566909.png|none|thumb|738x738px]] | ||
The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression. | The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression. | ||
Example | == Example == | ||
ReadOnlyExpression: | |||
ReadOnlyExpression: < | <span class="col-black">self.ThisShouldBeReadOnlyAndInvisible</span> | ||
You would then also need a VisibleExpression of: | |||
You would then also need a VisibleExpression of : | not self.ThisShouldBeReadOnlyAndInvisible | ||
Instead of filling the VisibleExpression, simply click the '''FollowEnable''' box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically. You will not need to maintain 2 expressions. | |||
Instead of filling the VisibleExpression, | |||
(The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.) | (The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.) | ||
[[Category:Expressions]] | [[Category:Expressions]] | ||
{{Edited|July|12| | {{Edited|July|12|2025}} |
Latest revision as of 05:50, 20 January 2025
In the ViewModelEditor, when selecting a ViewModelColumn, you see this:
The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression.
Example
ReadOnlyExpression:
self.ThisShouldBeReadOnlyAndInvisible
You would then also need a VisibleExpression of:
not self.ThisShouldBeReadOnlyAndInvisible
Instead of filling the VisibleExpression, simply click the FollowEnable box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically. You will not need to maintain 2 expressions.
(The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.)