onBeforeDelete

fires before an item is removed

boolean onBeforeDelete(string|number id){ ... };

Parameters

idstring|numberthe ID of the item

Returns

booleanreturning false will prevent the item from being removed

Example

view.data.attachEvent("onBeforeDelete", function(id){
    //... some code here ...
    // return false to block operation
    return true;
});

Details

Returning false from the event handler will block further processing, and the item will not be deleted.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web development library and page of html5 context menu product.