Types
Types
The types of search.
SearchChangedEvent
Type
type SearchChangedEvent = NavigationEvents['searchChanged']
| Member | Type | Description |
|---|---|---|
| textRequired | string | The text in the field. |
| isFocusedRequired | boolean | Whether the field has the focus. |
| scope | string | The id of the selected scope filter. Set only when the field has a scope bar. |
| tokens | string[] | The ids of the tokens in the field. Set only when the field uses tokens. |
| screenRequired | ScreenRef |
SearchSubmittedEvent
Type
type SearchSubmittedEvent = NavigationEvents['searchSubmitted']
| Member | Type | Description |
|---|---|---|
| textRequired | string | The text in the field. |
| scope | string | The id of the selected scope filter. Set only when the field has a scope bar. |
| tokens | string[] | The ids of the tokens in the field. Set only when the field uses tokens. |
| screenRequired | ScreenRef |
SearchCancelledEvent
Type
type SearchCancelledEvent = NavigationEvents['searchCancelled']
| Member | Type | Description |
|---|---|---|
| screenRequired | ScreenRef |
SearchSuggestionPickedEvent
Type
type SearchSuggestionPickedEvent = NavigationEvents['searchSuggestionPicked']
| Member | Type | Description |
|---|---|---|
| suggestionIdRequired | string | The id of the suggestion that was picked. |
| screenRequired | ScreenRef |