Hierarchy
Properties
focusedResultIndex
The currently focused result. -1 if no item is focused yet.
Default Value
-1minSearchQueryLength
Current minimum search query length. When using the UI or the API function NutrientViewer.Instance#search, any query shorter than this number will not be performed.
In Server mode, this value is retrieved from the server at load time.
The default value is 1 (not configurable) in Standalone mode,
and 3 in Server mode (configurable in the server).
results
The latest search results. These will be rendered as highlights in the page view.
term
The current search term. Changing this term will not start a search. Please use NutrientViewer.Instance#startUISearch for that purpose.
Immutable Record API
31
"[iterator]"(): IterableIterator<
[
keyof { … },
| string
| number
| boolean
| NutrientViewer.Immutable.List<NutrientViewer.SearchResult>,
],
>Returns
IterableIterator<
[
keyof { … },
| string
| number
| boolean
| NutrientViewer.Immutable.List<NutrientViewer.SearchResult>
]
>
Returns
thisSee Also
Map#asImmutable
Returns
thisSee Also
Map#asMutable
Returns a new instance of this Record type with all values set to their default values.
Returns
this
delete<K extends keyof { … }>(key: K): this
Returns a new instance of this Record type with the value for the specific key set to its default value.
Parameters
otherunknownReturns
boolean
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
Returns
number
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
remove<K extends keyof { … }>(key: K): this
Parameters
keyPathIterable<unknown>valueunknownReturns
this
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Returns
{ … }
focusedResultIndex: number
The currently focused result. -1 if no item is focused yet.
Default Value
-1isFocused: boolean
Indicates that the search input has focus.
isLoading: boolean
Indicates that we're currently loading search requests.
- ReadonlyminSearchQueryLength: number
Current minimum search query length. When using the UI or the API function NutrientViewer.Instance#search, any query shorter than this number will not be performed.
In Server mode, this value is retrieved from the server at load time.
The default value is
1(not configurable) in Standalone mode, and3in Server mode (configurable in the server). results: unknown
The latest search results. These will be rendered as highlights in the page view.
term: string
The current search term. Changing this term will not start a search. Please use NutrientViewer.Instance#startUISearch for that purpose.
Shallowly converts this Record to equivalent native JavaScript Object.
Returns
{ … }
focusedResultIndex: number
The currently focused result. -1 if no item is focused yet.
Default Value
-1isFocused: boolean
Indicates that the search input has focus.
isLoading: boolean
Indicates that we're currently loading search requests.
- ReadonlyminSearchQueryLength: number
Current minimum search query length. When using the UI or the API function NutrientViewer.Instance#search, any query shorter than this number will not be performed.
In Server mode, this value is retrieved from the server at load time.
The default value is
1(not configurable) in Standalone mode, and3in Server mode (configurable in the server). results: NutrientViewer.Immutable.List<NutrientViewer.SearchResult>
The latest search results. These will be rendered as highlights in the page view.
term: string
The current search term. Changing this term will not start a search. Please use NutrientViewer.Instance#startUISearch for that purpose.
Shallowly converts this Record to equivalent JavaScript Object.
Returns
{ … }
focusedResultIndex: number
The currently focused result. -1 if no item is focused yet.
Default Value
-1isFocused: boolean
Indicates that the search input has focus.
isLoading: boolean
Indicates that we're currently loading search requests.
- ReadonlyminSearchQueryLength: number
Current minimum search query length. When using the UI or the API function NutrientViewer.Instance#search, any query shorter than this number will not be performed.
In Server mode, this value is retrieved from the server at load time.
The default value is
1(not configurable) in Standalone mode, and3in Server mode (configurable in the server). results: NutrientViewer.Immutable.List<NutrientViewer.SearchResult>
The latest search results. These will be rendered as highlights in the page view.
term: string
The current search term. Changing this term will not start a search. Please use NutrientViewer.Instance#startUISearch for that purpose.
toSeq(): Keyed<
keyof { … },
| string
| number
| boolean
| NutrientViewer.Immutable.List<NutrientViewer.SearchResult>,
>Returns
Keyed<
keyof { … },
| string
| number
| boolean
| NutrientViewer.Immutable.List<NutrientViewer.SearchResult>
>
Parameters
keyPathIterable<unknown>updater(value: unknown) => unknownReturns
this
Returns
booleanSee Also
Map#wasAltered
Note: Not all methods can be used on a mutable collection or within
withMutations! Onlysetmay be used mutatively.Parameters
mutator(mutable: this) => unknownReturns
thisSee Also
Map#withMutations
The current state of the search indicators inside the web view.
You can update the search state using Instance#setSearchState.