value

sets the initial value for a control

string value;

Example

webix.ui({
    view:"segmented",  id: "segment",
    value:"one", 
    options:[
        { id:"one", value:"One" },
        { id:"two", value:"Two"},
        { id:"three", value:"Three"}
    ],
    value: "three" // sets the value initially
});

Related samples

Details

All controls fall into:

  • single-value - those containing a string or a number;
  • multiple-value - those containing an array of values;

In case of multiple-value controls, the property points to the ID of the initially chosen option.

Value of the control may be:

See also
Back to top