Constructor
new module:mobile.startup/search.SearchOverlay(params)
#
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | Configuration options Properties:
|
Methods
hideKeyboardOnScroll()
#
Hide the keyboard when scrolling starts (avoid weird situation when user taps on an item, the keyboard hides and wrong item is clicked).
Hide the keyboard when scrolling starts (avoid weird situation when user taps on an item, the keyboard hides and wrong item is clicked).
onClickOverlayContent()
#
Tapping on background only should hide the overlay
onClickResult(ev)
#
onClickSearchContent()
#
Initialize 'search within pages' functionality
performSearch(query)
#
Perform search and render results inside current view. FIXME: Much of the logic for caching and pending queries inside this function should actually live in SearchGateway, please move out.
Parameters:
Name | Type | Description |
---|---|---|
query |
string |
postRender()
#
show()
#
showKeyboard()
#
Trigger a focus() event on search input in order to bring up the virtual keyboard.
Trigger a focus() event on search input in order to bring up the virtual keyboard.