MenuOption interface

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


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


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