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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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.

  • No labels