SearchState
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
Mark that we have already searched for this query so that we don't have to ping the endpoint again. |
|
public |
clear() Clear the search value. |
|
public |
If we are displaying the full results of a search (not just a preview), this value should return the query that prompted that search. |
|
public |
getValue(): * |
|
public |
Check if this query has been searched before. |
|
public |
|
Public Constructors
public constructor() source
Public Methods
public cache(query: undefined) source
Mark that we have already searched for this query so that we don't have to ping the endpoint again.
Params:
Name | Type | Attribute | Description |
query | undefined |
public getInitialSearch(): string source
If we are displaying the full results of a search (not just a preview), this value should return the query that prompted that search.
In this generic class, full page searching is not supported. This method should be implemented by subclasses that do support it.