value

sets the initial value for a control

string|number|boolean value;

Example

webix.ui({
    view:"toggle",
    id: "mytoggle",
    offLabel:"Disabled", onLabel:"Enabled",
    value: true // enables the control 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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.