Skip to content

ContextMenuParams

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). Populated when the SelectionPlugin is active in row mode. If the right-clicked row was not part of a multi-selection, this contains only the right-clicked row index.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt