getValue

returns the current value of the control

number getValue();
numberthe current value of the control

Example

webix.ui({
  padding:20,
  width:400,
  rows:[
    { type:"section", template:"Settings"},
    { view: "switch", id: "myswitch", value: true, label:"Sound"},
  ]
});
 
$$("myswitch").getValue(); // returns 1

Details

The returned value of the control may be:

See also
Back to top