SearchAction

An action that displays a search text field with dynamic proposals when selected. Add a listener on select to implement the action. On input, you may set a list of proposals. Includes Action

Methods

open()

Parameters:

Invokes the search action, i.e. displays the ui to perform a search.

Properties

message

Type: string

A hint text that is displayed when the search input is empty.

proposals

Type: string[], default: []

The list of proposals to display.

text

Type: string

The text in the search input field.

Events

“accept” (widget, text, options)

Parameters:

Fired when a text input has been submitted by pressing the keyboard’s search key.

“input” (widget, text, options)

Parameters:

  • widget: this
  • text: string, the new value of text.
  • options: any

Fired the user inputs text.

See also