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: 'design', 'runtime' or '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).

logWhenOverMax: boolean

For the valuelist property type. If set to false, no logging will be done when only sending "max" number of items to the browser even though the valuelist does contain more than "max" items. Default is true.

allowedit: string or array of strings

This can tag can define if an edit of this property is allowed even if the "visible" or the "enable" are false. By default if the visiblity is false of a component or its parent form, Servoy doesn't allow modification of any property. With this tag you can say for "visible" i allow it or for both: ["visible", "enable"]


 
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. 

...