Interface SearchUiService

Provides methods to control the search-ui. The service can be referenced via search-ui.SearchUiService.

interface SearchUiService {
    on<Name>(name: Name, callBack: EventCallback<SearchUiServiceEvents[Name]>): Handle;
    reset(options?: {
        searchText?: string;
    }): void;
}

Hierarchy

Methods

Methods

  • Registers event listener.

    Type Parameters

    • Name extends "reset"

    Parameters

    Returns Handle

  • Resets the UI. Optionally accepts a text to be displayed in the search field.

    Parameters

    • Optionaloptions: {
          searchText?: string;
      }
      • OptionalsearchText?: string

    Returns void