4.0
Interfaces
MenuOption

The context menu is part of the grid, each menu option must implement the interface below.

Definition

interface MenuOption {  id: string;  label: string;  handler: (selectedRowIds: Id[], selectedColIds: Id[], selectionMode: SelectionMode, selectedRanges: Array<CellLocation[]>) => void; }

Properties

Property nameTypeProperty description
idstringText that identifies each menu option
labelstringLabel displayed in menu
handler(selectedRowIds: Id[], selectedColIds: Id[], selectionMode: SelectionMode, selectedRanges: Array<CellLocation[]>) => void`Function that is called when option is clicked