enables the edit mode for the specified item
id | object | the object defining the position of a cell |
dtable.edit({
row:2,
column:"title"
});
Note that the method will work only with the enabled editable parameter:
webix.ui({
view:"datatable",
editable:true
});
The input object parameter should contain 2 attributes:
Still, for datatable it's better to use its editCell, editRow and editColumn methods.
The method is useful when adding a hotkey to open edit state.
webix.UIManager.addHotKey("enter", function(view){
var pos = view.getSelectedId();
view.edit(pos); //edit selected item on pressing 'enter'
}, gridc);
Related sample: Using the 'select' Editor