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

    Interface SpotlightHandle<TItem>

    Imperative handle returned by spotlight.

    interface SpotlightHandle<TItem extends SpotlightItem = SpotlightItem> {
        isOpen: boolean;
        activateActive(): TItem | undefined;
        close(): boolean;
        focus(): void;
        query(): string;
        open(): boolean;
        results(): readonly TItem[];
        setQuery(query: string): string;
        toggle(): boolean;
        element: BoxElement;
        destroy(): void;
        setData(data: SpotlightData): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    isOpen: boolean

    Current controlled or uncontrolled open state.

    element: BoxElement

    Underlying Blessed element available for standard element operations.

    Methods