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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.