Phase: "start", "end" or "cancel".
Dragging the handle or a double click on it.
Model index of the column (over west, center and east).
The column definition – undefined for a table model without column definitions.
The property of the column (columnDef.property) – use it to store the width, indices change.
Width in px when the drag started.
Width in px now: "start" = oldWidth, "end" = the new width, "cancel" = oldWidth again.
Optional originalEvent: EventThe browser event behind it (mouse up, double click; undefined for TableApi.cancelColumnDrag).
Readonly columnThe column definition – undefined for a table model without column definitions.
Readonly columnModel index of the column (over west, center and east).
Readonly newWidth in px now: "start" = oldWidth, "end" = the new width, "cancel" = oldWidth again.
Readonly oldWidth in px when the drag started.
Optional Readonly originalThe browser event behind it (mouse up, double click; undefined for TableApi.cancelColumnDrag).
Readonly propertyThe property of the column (columnDef.property) – use it to store the width, indices change.
Readonly sourceDragging the handle or a double click on it.
Readonly typePhase: "start", "end" or "cancel".
The user resizes a column (EventListenerIf.onColumnResizeStart, EventListenerIf.onColumnResizeEnd).
Only user actions report it – not TableApi.setColumnWidth, TableApi.applyState, TableApi.autoResizeColumns or TableApi.autoResizeColumn. The end comes once per start, after the table applied the width: in the handler TableApi.getState and the table model already have it.
Example
Since
1.1.110