stops the edit mode and closes all opened editors. The component remains editable.
prop.registerType("toggle",{
...,
click:{
webix_toggle_button_custom:function(e, id){
var data = this.getItem(id);
if (data.options[0] == data.value)
data.value = data.options[1];
else
data.value = data.options[0];
this.editStop();
this.refresh(id);
this.callEvent("onCheck",[id, data.value]);
},
..
});
The method saves changes before closing the editor(s).