Child pages
  • Specification (.spec file)

Versions Compared

Key

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

...

For component type, specify whether component should be added to elements scope. Default is false, so component can be accessed only via component property. If true, will be accessible like any other element of the form.

Default/Initial values

A property can have a default value like:

Code Block
languagejs
"text": {"type":"string", "default":"button"}

But this would mean that restore to default or empty the property would always set that default property back. This is wanted behavior if the property has to have some default value like if a property must be 1 of a few values and the default is one of those.

But for a button or label that by default you want some text in it, the default value is not really usable (the label text should be able to be nothing, only an image should be shown). For this we have the attribute initialValue:

Code Block
languagejs
 "text" : {"type":"tagstring" , "initialValue":"Button", "tags": { "directEdit" : "true" }},

This is like a constructor value, set only once when the component is created.

Security

Components can be protected using two special security types: visible and protected.

...