SearchStatus (Insight Engine) (Deprecated)
SearchStatus (Insight Engine) (Deprecated)
|
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
Methods
subscribe
Adds a callback that’s invoked on state change.
Parameters
-
listener:
() => voidA callback that’s invoked on state change.
Returns Unsubscribe: A function to remove the listener.
Attributes
state
The state of the SearchStatus controller.
Properties
-
firstSearchExecuted:
booleanDetermines if a first search has been executed.
-
hasError:
booleantrueif there’s an error for the last executed query andfalseotherwise. -
hasResults:
booleanDetermines if there are results available for the last executed query.
-
isLoading:
booleanDetermines if a search is in progress.
Initialize
buildSearchStatus
Creates an insight SearchStatus controller instance.
Parameters
-
engine:
InsightEngineThe insight engine.
Returns SearchStatus
Related types
Unsubscribe
Call signatures
-
(): void