SearchBoxModel

searchBox. SearchBoxModel

new SearchBoxModel()

Source:

Extends

  • Backbone.Model

Members

defaults

Source:
Default Value:
  • {
      "searchEngine": "",
      "typeahead": "",
      "dataProperties": "",
      "searchQuery": "",
      "loadingInProgress": false,
      "sig": ""
    }
Default model options

Methods

(static) createSuggestionsUrl(properties, searchQuery) → {string}

Source:
Creates url from which suggestion should be taken
Parameters:
Name Type Description
properties Object list of properties for suggestion functionality
searchQuery String text from search box
Returns:
search url based on setups
Type
string

(static) getLanguage() → {string}

Source:
get search box language
Returns:
selected language
Type
string

(static) getSignature() → {string}

Source:
get search box signature
Returns:
search box signature
Type
string

(static) initSearchEngine()

Source:
create instance of "Bloodhound" width necessary options