UI Headless Runtime API - v1.0.0
    Preparing search index...

    Interface PopoverController

    Headless Popover command, event, binding, and positioning surface.

    interface PopoverController {
        bind(elements: OverlayElements): () => void;
        close(details?: ChangeDetails<OpenChangeReason>): void;
        destroy(): void;
        getSnapshot(): Readonly<TSnapshot>;
        off<TKey extends keyof OpenLifecycleEvents<OpenChangeReason>>(
            type: TKey,
            listener: RuntimeEventListener<
                OpenLifecycleEvents<OpenChangeReason>[TKey],
            >,
        ): void;
        on<TKey extends keyof OpenLifecycleEvents<OpenChangeReason>>(
            type: TKey,
            listener: RuntimeEventListener<
                OpenLifecycleEvents<OpenChangeReason>[TKey],
            >,
        ): Unsubscribe;
        once<TKey extends keyof OpenLifecycleEvents<OpenChangeReason>>(
            type: TKey,
            listener: RuntimeEventListener<
                OpenLifecycleEvents<OpenChangeReason>[TKey],
            >,
        ): Unsubscribe;
        open(details?: ChangeDetails<OpenChangeReason>): void;
        subscribe(listener: SnapshotListener<OpenSnapshot>): Unsubscribe;
        toggle(details?: ChangeDetails<OpenChangeReason>): void;
        updatePosition(): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Recalculates coordinates after consumer-rendered size changes.

      Returns void