Documentation

edit

enables the edit mode for the specified item

void edit(object id);

Parameters

idobjectthe object defining the position of a cell

See also

Example

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

Related sample:   Using the 'select' editor
Details

Note, 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

Back to top