Versions Compared

Key

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

...

ModifierDescriptionApplicable for type
tags

Different tags can be defined on type:

scope: Restricts the model property to either : 'design', 'runtime' or 'runtime'private'. Design means property can only be assigned from designer (not from scripting). Runtime means the property cannot be assigned from designer (will be hidden in Properties View). Private is an internal property, that should only be used by component itself (so component.js or component_server.js). Will not show in Properties View and cannot be assigned from scripting.

directEdit: boolean One property of a component can be tagged as directEdit for designer, this way that property can be edited directly by double clicking the component (for example text property on label/button).

 
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
forReference to another property. Can be value or array of values. 

...