Versions Compared

Key

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

...

Property value type modifiers:

Default value specification
ModifierDescriptionApplicable for type
scopewith a value "design", it's possible to indicate the property is only mend to be used as designer value i.e not at runtime.Restricts the model property to either 'design' or 'runtime' 
values

Fixed values, can have real/display values.

Code Block
titleExample with display and real values
[{"LEFT":2}, {"CENTER":0},{"RIGHT":4}]
Code Block
titleExample with plain values
[
    'btn',
    'btn-default
',
    'btn-lg',
    'btn-sm',
    'btn-xs'
]
 
defaultDefines the default value being used. 
onDataChangeSee dataprovider typedataprovider
forSee format typeformat

Note: defaults now also get applied to the model. This might change. Best practice is to initialize the model properties with values in the directive's link method and specify the same values as defaults in the .spec file for proper display in Servoy Developer. 

 

See also:

Children Display