Namespace: keyotiSearchBox

keyotiSearchBox

Manages the search box Control where the user can enter their query

Members

(static) buttonText :String

The button text
Type:
  • String

(static) resultURL :String

Optional - when set, searches are sent to the URL set here. Setting this enables 2 page style searching, otherwise the search results are shown on the same page
Type:
  • String
The textbox element
Type:
  • Object

(static) searchBoxControl :Object

The sew_searchBoxControl element
Type:
  • Object

(static) searchButton :Object

The search button element
Type:
  • Object

(static) searchOnEnter :Boolean

Whether to run the search when the user presses ENTER in the query textbox (default true).
Type:
  • Boolean

(static) watermarkText :String

The watermark text
Type:
  • String

(static) watermarkVisible :Boolean

Whether to show the 'Search' placeholder ('watermark')
Type:
  • Boolean

Methods

(static) doSearch()

Runs a search with either 'optionalQuery' or if not specified the query in the textbox

(static) ensureSearchBoxChildControls()

Create textbox and button controls if not already present, within an element with id='sew_searchBox'

(static) getQuery()

Returns the query in the textbox

(static) init()

Initialize

(static) setQuery()

Sets the query shown in the textbox