ContextMenuItem: {
    disabled?: boolean;
    label: string;
    onClick: (() => void);
}

Type declaration

  • Optional disabled?: boolean

    Specifies whether the context menu item is disabled.

  • label: string

    The label for the context menu item.

  • onClick: (() => void)

    The function to call when the context menu item is clicked.

      • (): void
      • Returns void