Skip to content

edit

enables the edit mode for the specified item

function edit(
// the object defining the position of a cell
id: WebixCellObject
): void
dtable.edit({
row:2,
column:"title"
});

also check the next samples:

Note that the method will work only with the enabled editable parameter:

webix.grid({
editable:true
});

The input object parameter should contain 2 attributes:

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

Still, for datagrid it’s better to use its editCell, editRow and editColumn methods.

The method is useful when adding a hotkey to open edit state.

const pos = grid.getSelectedId();
grid.edit(pos); //edit a selected item

you can check the full snippet Using the ‘select’ Editor

Articles