blessed-components - v1.20.0
    Preparing search index...

    Interface DropdownMenuHandle<TAction>

    Imperative handle returned by dropdownMenu.

    interface DropdownMenuHandle<TAction extends MenuItem = MenuItem> {
        activateActive(): TAction | undefined;
        activeItemId(): string | undefined;
        close(): void;
        focusedId(): string | undefined;
        focus(): void;
        focusMenu(id: string): string | undefined;
        openId(): string | undefined;
        open(id?: string): string | undefined;
        element: BoxElement;
        destroy(): void;
        setData(data: DropdownMenuData): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    element: BoxElement

    Underlying Blessed element available for standard element operations.

    Methods