@samatawy/diagrams
    Preparing search index...

    Interface DropDownMenu

    Lightweight dropdown menu that renders in the main menu bar.

    interface DropDownMenu {
        label: string;
        altKey: string;
        icon?: string;
        items: MenuComponent[];
        isEnabled?: (target?: unknown) => boolean;
        isVisible?: (target?: unknown) => boolean;
        element?: HTMLElement;
    }
    Index

    Properties

    label: string

    The display label for the dropdown menu.

    altKey: string

    The underlined keyboard shortcut for the dropdown menu.

    icon?: string

    Optional icon for the dropdown menu.

    items: MenuComponent[]

    The items in the dropdown menu.

    isEnabled?: (target?: unknown) => boolean

    Optional callback to determine whether the dropdown menu is enabled.

    isVisible?: (target?: unknown) => boolean

    Optional callback to determine whether the dropdown menu is visible.

    element?: HTMLElement

    Reference to the dropdown menu element, set only after the menu is rendered.