Search
Extends:
The Search
component displays a menu of as-you-type results from a variety
of sources.
The search box will be 'activated' if the app's search state's getInitialSearch() value is a truthy value. If this is the case, an 'x' button will be shown next to the search field, and clicking it will clear the search.
ATTRS:
- state: SearchState instance.
Static Member Summary
Static Public Members | ||
public static |
|
Member Summary
Public Members | ||
public |
Whether or not the search input has focus. |
|
public |
The index of the currently-selected |
|
public |
loadingSources: Integer The number of sources that are still loading results. |
|
public |
navigator: * |
|
public |
An array of SearchSources. |
|
public |
state: * |
Method Summary
Public Methods | ||
public |
clear() Clear the search |
|
public |
getCurrentNumericIndex(): Integer Get the position of the currently selected search result item. |
|
public |
Get the |
|
public |
oncreate(vnode: *) |
|
public |
oninit(vnode: *) |
|
public |
onupdate() |
|
public |
Navigate to the currently selected search result and close the list. |
|
public |
selectableItems(): jQuery Get all of the search result items that are selectable. |
|
public |
Set the currently-selected search result item to the one with the given index. |
|
public |
Build an item list of SearchSources. |
|
public |
view(): * |
Static Public Members
public static MIN_SEARCH_LEN: * source
Public Members
public index: String | Integer source
The index of the currently-selected
public navigator: * source
public state: * source
Public Methods
public getCurrentNumericIndex(): Integer source
Get the position of the currently selected search result item.
Return:
Integer |
public getItem(index: String): DOMElement source
Get the
Params:
Name | Type | Attribute | Description |
index | String |
Return:
DOMElement |
public oncreate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public oninit(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public onupdate() source
public selectableItems(): jQuery source
Get all of the search result items that are selectable.
Return:
jQuery |