map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface SearchUiService

    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

    Index

    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