Documentation

elements

an array of property items

object elements;

Example

view:"property",  
elements:[
    { label:"Layout" },
    { label:"Width", type:"text", id:"width"},
    { label:"Data type", type:"toggle", options:["json","xml"], id:"type"},
    { label:"Color front",  type:"popup",    popup:"myColorF", id:"colorF" },
]

See also

Details

Each property element features

  • label - text label displayed on the left. If there's no other properties, such elements becomes header;
  • type - editor type initiated on clicking the element value;
  • id - ID of the element. Used by setValues() and getValues() methods to place values into dedicated cells;
  • editor controls (depend on the type property). Check editor types for details.

Possible type values coincide with editor types and are as follows:

  • color - for colors, colorboard appears on editing;
  • text - for text values);
  • select - for selection among several text values;
  • checkbox - for two-state values;
  • toggle (a two-state button) - for two-state values;
  • popup - a popup window;

When type is not defined, the element turns into header of the property sheet section.

Back to top