Child pages
  • Findmode property type
Skip to end of metadata
Go to start of metadata

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

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

"model":
{
 [...]
 "findmode" : true
 [...]
},

This value is meant only for notification purposes. Changing it will be ingnored server-side. Components can watch this property in order to implement findmode behaviour.

  • No labels