Optional onThe pending changes of a batch edit changed: values were marked, set back, written or discarded (TableApi.startBatchEdit, TableOptionsIf.batchEdit). Optional.
type, cells of this step, number of pending and invalid cells
1.1.96
Right-click on the table. Call evt.originalEvent?.preventDefault() to suppress the browser menu (e.g. for an own menu).
Optional onA detail row was expanded or collapsed (master/detail, TableOptionsIf.masterDetail).
1.1.97
Optional onThe cell editor opened, its text changed (Excel-style editing), it committed or it was cancelled. Optional.
type, cell, mode, editor text
1.1.99
The focused cell changed – read it from FocusModelIf.getFocus.
Cells were edited – evt.cells holds row and column index of each; the new value is already in the model (your row object).
A click on the table. A double-click on the same cell is reported again with clickCount === 2
(after the first click with clickCount === 1).
The mouse is being dragged; evt.draggingX / evt.draggingY hold the distance.
A drag with the mouse ended (column resize, column move or range selection).
The mouse moved over the table (cell under the mouse in evt). Called often – keep it cheap.
Optional onOptional: a row drag ended – evt.type is "end" (dropped; evt.moved = the table moved the rows) or "cancel".
Managed: called after the move (evt.toIndex = the real position). Save the new order here; to veto a drop, call
evt.preventDefault() in onRowDragMove.
1.1.95
Optional onOptional: the drop target of a row drag changed (not on every pixel). evt.preventDefault() marks the target as
invalid (no drop marker, no drop).
1.1.95
Optional onOptional: a row drag started (drag handle moved past the threshold, or Ctrl+Alt+↑/↓). evt.preventDefault()
cancels it. See GeRowDragEvent.
1.1.95
The table was scrolled.
The selection changed – read it from SelectionModelIf.getRanges.
Optional onThe state of the table changed (column layout, sorting, scroll position, tree, checked or selected rows,
header groups, custom data) – reported once after the changes settled, see GeStateChangeEvent.
Save evt.state e.g. on your server and pass it back as TableOptionsIf.initialState.
1.1.92
Optional onThe undo history changed (undo and redo, TableOptionsIf.undo) – to enable and label own buttons. Optional.
can undo/redo, labels, size
1.1.99
Receives the events of a table – the fifth argument of
new TableScope(…). Extend EventAdapter and override only the methods you need.In the framework wrappers the same events arrive as callback props (
mouseClicked,selectionChanged…), Vue events, Angular outputs or bubblingCustomEvents of the Web Component.Example
See
Training: Events and a context menu of your own