FollowEnable
No edit summary
(Updated Edited template to July 12, 2025.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In the ViewModelEditor - when selecting a ViewModelColumn you see this:
<message>Write the content here to display this box</message>
[[File:FollowEnable 1704890566909.png|none|thumb|596x596px]]
In the ViewModelEditor, when selecting a ViewModelColumn, you see this:
[[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:  
<span class="col-black">self.ThisShouldBeReadOnlyAndInvisible</span>
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.


ReadOnlyExpression: self.ThisShouldBeReadOnlyAndInvisible
(The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.)
 
[[Category:Expressions]]
You would then also need a VisibleExpression of : not self.ThisShouldBeReadOnlyAndInvisible
{{Edited|July|12|2025}}
 
Instead of filling the VisibleExpression you simply click the FollowEnable box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically and you do not need to maintain 2 expressions.
 
(the reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative)

Latest revision as of 05:50, 20 January 2025

This page was created by Hans.karlsen@mdriven.net on 2024-01-10. Last edited by Edgar on 2025-01-20.

In the ViewModelEditor, when selecting a ViewModelColumn, you see this:

FollowEnable 1704890566909.png

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.)

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments