onCheck

fires on checking/unchecking a checkbox

void onCheck(string|number id,boolean state);
idstring|numberthe id of a checkbox
statebooleantrue for the checked state, false for the unchecked one

Example

webix.ui({
  view:"property",
  id:"sets",
  width:300,
  elements:[
    {label:"Layout", type:"label"},
    {label:"Width", type:"text", id:"width", value:250},
    {label:"Height", type:"text", id:"height", value:380},
    {label:"Use JSONP", type:"checkbox", id:"jsonp"}
  ]
});
 
$$("sets").attachEvent("onCheck",function(id,state){console.log(id,state)});

See also
Back to top