onBeforeEditStart

fires before edit operation is initiated

boolean onBeforeEditStart(object cell){ ... };

Parameters

cellobjectthe cell that will be edited (details below)

Returns

booleanreturning 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
Back to top