Child pages
  • Findmode property type

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Purpose of this property type

This property type allows setting other (Boolean) properties of the component to a configured state when entering findmode. When specifying a property of type "findmode" on a component, that component will become findmode aware. 

This property type is only meant to control other properties of type boolean. It is designed to only work server side and to be controlled indirectly by setting the fom in findmode.

.spec file

Code Block
languagejs
linenumberstrue
"model":
{
 [...]
 "editable" : { "type": "protected", "blockingOn": false, "default": true,"for": ["dataProviderID"] }, 
 "enabled" : { "type": "protected", "blockingOn": false, "default": true, "for": ["dataProviderID"] }, 
 "findmode" : { "type":"findmode", "scope" : "private", "for" : { "enabled":true, "editable":true}}
 [...]
},

In this example we add the property type findmode to the model and configure it by using the "for" key.

The "for" value 

{ "enabled":true, "editable":true} 

says that when entering findmode (findmode is set to value true) it will also change properties "enabled" and "editable" to values true and true. The property will first remember current values.

When exiting findmode (findmode is set to value false), this property will put back the stored values from before entering findmode.

Browser/Client Side

The client will only receive the current findmode state as a boolean value.

Code Block
languagejs
linenumberstrue
"model":
{
 [...]
 "findmode" : true
 [...]
},