onBeforeEditStart of EditAbility, Events Webix Docs
fires before edit operation is initiated
boolean onBeforeEditStart(object cell);
| boolean | returning false will prevent editing of an item |
Example
$$("datatable1").attachEvent("onBeforeEditStart", function(cell){
//... some code here ...
return true;
});
Details
The cell parameter is an object with the following properties:
- row - (number) the number of the row,
- column - (string) the ID of the column.
$$("datatable1").attachEvent("onBeforeEditStart", function(cell){
webix.message("The editor will be opened in row " + cell.row + " column \"" + cell.column + "\"");
return true;
});
See also