Trevixal API
    Preparing search index...

    Interface DropdownOptions

    The dropdown primitive shared by the menubar, the toolbar selects, the color pickers and the table grid.

    It owns exactly one concern: showing a panel under a trigger button and closing it again (Escape, outside click, focus loss). Panel content is supplied by the caller, so adding a new kind of dropdown never means touching this file.

    interface DropdownOptions {
        className?: string;
        document: Document;
        onOpen?: (panel: HTMLElement) => void;
        render: (panel: HTMLElement, dropdown: Dropdown) => void;
    }
    Index
    className?: string
    document: Document
    onOpen?: (panel: HTMLElement) => void

    Called whenever the panel opens, for refreshing state.

    render: (panel: HTMLElement, dropdown: Dropdown) => void

    Fills the panel. Called once on creation.