ContextMenuOption: {
    displayText: string;
    icon?: React.ReactNode;
    shortcut?: string;
    value: number;
}

Menu option that describes one menu item.

Type declaration

  • displayText: string

    The text to be displayed in the context menu.

  • Optionalicon?: React.ReactNode

    An optional icon to be displayed together with the displayText.

  • Optionalshortcut?: string

    An optional shortcut string to be displayed together with the displayText.

  • value: number

    A unique value that identifies this menu item.