MenuOption interface

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) => void;
}

Properties

Property nameTypeProperty description
idstringText that identifies each menu option
labelstringLabel displayed in menu
handler(selectedRowIds: Id [], selectedColIds: Id [], selectionMode: SelectionMode ) => voidFunction that is called when option is clicked