ContextMenuParams
Since v0.1.1
Parameters passed to context menu callbacks. Provides context about what element triggered the menu.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
row | unknown | The row data object (null for header clicks) |
rowIndex | number | The row index (-1 for header clicks) |
column | unknown | The column configuration |
columnIndex | number | The column index |
field | string | The field name of the column |
value | unknown | The cell value (null for header clicks) |
isHeader | boolean | Whether the context menu was triggered on a header |
event | MouseEvent | KeyboardEvent | The original mouse or keyboard event |
selectedRows | number[] | The currently selected row indices (sorted ascending), after the selection was synced to the target cell — identically for right-click, touch long-press, Shift+F10, and the ContextMenu key. Populated from the SelectionPlugin in every mode: the selected rows in row mode, the selected cell’s row in cell mode, and every row a selected range covers in range mode. If the target row is not part of the selection (or no SelectionPlugin is loaded), this contains only the target row index. |