interface IMenubarItem {
    name: string | ((args: any) => string);
    action?: string | (() => void);
    disabled?: boolean;
    items?: MenubarItemTypes[];
    resolver?: string | (() => void);
    shortcut?: string;
    type?: "Separator" | "CheckboxItem";
}

Hierarchy

  • IMenubarItemPrimitive
    • IMenubarItem

Properties

name: string | ((args: any) => string)
action?: string | (() => void)

The action to be executed when the item is clicked. Can be a function or a string that represents a handler in the component.

disabled?: boolean

Whether the item is disabled or not.

items?: MenubarItemTypes[]
resolver?: string | (() => void)

The resolver function or reference to be used to get the value of the item.

shortcut?: string

The shortcut to be displayed in the item.

type?: "Separator" | "CheckboxItem"

The type of the item.