Interface to react on the 'Enter' key pressed event of the search-ui input field. It will provide the current text from the input field to another component. This interface is used by the product smart.finder Only one action is allowed. It must be registered as a service which provides search-ui.EnterKeyAction.

interface SearchUiEnterKeyAction {
    description?: string;
    reset(): void;
    trigger(searchText: string): void;
}

Properties

Methods

Properties

description?: string

A description of the action. Used as tooltip for the lens icon button and its aria-label.

Methods

  • Informs the action that the search-ui was reset.

    Returns void

  • Triggers the action.

    Parameters

    • searchText: string

      the current searchText shown in the input field.

    Returns void