SearchStatus (Insight Engine) (Deprecated)
SearchStatus (Insight Engine) (Deprecated)
In this article
|
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:
() => void
A 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:
boolean
Determines if a first search has been executed.
-
hasError:
boolean
true
if there’s an error for the last executed query andfalse
otherwise. -
hasResults:
boolean
Determines if there are results available for the last executed query.
-
isLoading:
boolean
Determines if a search is in progress.
Was this article useful?
Thanks for your feedback!