GlobalSearchState
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
changeSort(sort: undefined) Redirect to the index page using the given sort parameter. |
|
public |
clear() Clear the search input and the current controller's active search. |
|
public |
Redirect to the index page without a search filter. |
|
public |
|
|
public |
getInitialSearch(): * |
|
public |
getValue(): * |
|
public |
|
|
public |
params(): * Get parameters to be used in the current page. |
|
public |
stickyParams(): {"sort": *, "q": *} Get URL parameters that stick between filter changes. |
Public Constructors
public constructor() source
Public Methods
public changeSort(sort: undefined) source
Redirect to the index page using the given sort parameter.
Params:
Name | Type | Attribute | Description |
sort | undefined |
public clearInitialSearch() source
Redirect to the index page without a search filter. This is called when the 'x' is clicked in the search box in the header.
public intializeValue() source
public stickyParams(): {"sort": *, "q": *} source
Get URL parameters that stick between filter changes.
This can be used to generate a link that clears filters.
Return:
{"sort": *, "q": *} |