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

  const service = this.searchUiService; // injected
service.reset();
// or
service.reset({searchText: "My text"});
...
  const service = this.searchUiService; // injected
service.on("reset", ()=>{
// react to the reset of the search ui
});
...
interface SearchUiService {
    on<Name extends "reset">(
        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 }

    Returns void