Open Pioneer Trails Packages
    Preparing search index...

    Interface SearchApi

    API to control the Search component imperatively

    interface SearchApi {
        resetInput(): void;
        searchAndSelect(inputValue: string): Promise<SelectResult | undefined>;
        setInputValue(inputValue: string): void;
    }
    Index
    • Searches for the specified input value and selects the matching result.

      Parameters

      • inputValue: string

        The value to search for.

      Returns Promise<SelectResult | undefined>

      A promise that resolves to the selected SearchResult, or undefined if no matching result is found or selected.

    • Sets the search input field to the given value. The suggestion menu is not opened automatically when setting the input value.

      Parameters

      • inputValue: string

        The value to be set in the search input field.

      Returns void