closes the current editor and opens one in the next editable cell
| next | boolean | optional, the direction of moving to the next editor; true (default) - forward, false - backward (details below) |
| from | object | optional, the cell relative to which the next editable cell is searched for (details below) |
$$("mygrid").editNext();
Note that the method will work only with the enabled editable parameter:
webix.ui({
view:"datatable",
editable:true
});
The method takes two optional parameters:
// open the editor in the previous editable cell
$$("mygrid").editNext(false);
// open the editor in the next editable cell after the specified one
$$("mygrid").editNext(true, { row:10, column:"price" });
The cell specified in the from parameter is not opened for editing; the search starts from the cell next to it.
Note that if an editor is already open, the search starts from the cell of this editor and the from parameter is ignored.
If editing of the found cell is cancelled (e.g. the onBeforeEditStart event handler returns false), the method moves on to the next editable cell.