editStop

stops the edit mode and closes all opened editors. The component remains editable.

void editStop();

Example

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]);
            },
..
});

Related samples

Details

The method saves changes before closing the editor(s).

See also
Back to top