Skip to main content
‹ Search
Types

Types

The types of search.

SectionSearchDraftDocumented, not reviewed yet: the API can change.

SearchChangedEvent​

Type
type SearchChangedEvent = NavigationEvents['searchChanged']
MemberTypeDescription
textRequiredstring

The text in the field.

isFocusedRequiredboolean

Whether the field has the focus.

scopestring

The id of the selected scope filter. Set only when the field has a scope bar.

tokensstring[]

The ids of the tokens in the field. Set only when the field uses tokens.

iOSiPadOSAndroid (not supported)
screenRequiredScreenRef
Defined in src/api/events/navigationEvents.ts ↗

SearchSubmittedEvent​

Type
type SearchSubmittedEvent = NavigationEvents['searchSubmitted']
MemberTypeDescription
textRequiredstring

The text in the field.

scopestring

The id of the selected scope filter. Set only when the field has a scope bar.

tokensstring[]

The ids of the tokens in the field. Set only when the field uses tokens.

iOSiPadOSAndroid (not supported)
screenRequiredScreenRef
Defined in src/api/events/navigationEvents.ts ↗

SearchCancelledEvent​

Type
type SearchCancelledEvent = NavigationEvents['searchCancelled']
MemberTypeDescription
screenRequiredScreenRef
Defined in src/api/events/navigationEvents.ts ↗

SearchSuggestionPickedEvent​

Type
type SearchSuggestionPickedEvent = NavigationEvents['searchSuggestionPicked']
MemberTypeDescription
suggestionIdRequiredstring

The id of the suggestion that was picked.

screenRequiredScreenRef
Defined in src/api/events/navigationEvents.ts ↗