Skip to content

ContextMenuParams

Since v0.1.1

Parameters passed to context menu callbacks. Provides context about what element triggered the menu.

PropertyTypeDescription
rowunknownThe row data object (null for header clicks)
rowIndexnumberThe row index (-1 for header clicks)
columnunknownThe column configuration
columnIndexnumberThe column index
fieldstringThe field name of the column
valueunknownThe cell value (null for header clicks)
isHeaderbooleanWhether the context menu was triggered on a header
eventMouseEvent | KeyboardEventThe original mouse or keyboard event
selectedRowsnumber[]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.