getValue

returns the current value of the control

number getValue();
numberthe current value of the control

Example

webix.ui({
    view:"toggle", 
    type:"icon", 
    id: "mytoggle",
    offLabel:"Disabled", 
    onLabel:"Enabled" 
});
 
$$("mytoggle").getValue() // returns 0

Details

The method returns:

  • 0 - control is untoggled
  • 1 - control is toggled
See also
Back to top