edit

enables the edit mode for the specified item

void edit(object id);
idobjectthe object defining the position of a cell

Example

dtable.edit({
    row:2,
    column:"title"
});

Related samples

Details

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:

  • row - (string) the row id
  • column - (string) the column id

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

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix lightweight js framework and page of tree table widget product.