UXP Toolkit
    Preparing search index...
    interface MenuItem {
        checked?: boolean;
        enabled?: boolean;
        id: string;
        label?: string;
        submenu?: MenuItem[];
    }
    Index

    Properties

    checked?: boolean

    Checked state for the menu item. Default - false.

    enabled?: boolean

    Enabled/disabled state for the menu item. Default - true.

    id: string

    Identifier of the menu item.

    label?: string

    Display text for the menu item. Should be localized. If label is not specified, id is used as label. FIXME: does label localization even work?

    submenu?: MenuItem[]

    Submenu for this menu item again as an array of 'menuItems'. 'id' of submenus should still be unique across panel.