Home

namespace
ml-input

Source: directives/ml-input.directive.js:4

angular element directive; a search-input form.

attributes:

  • qtext: a reference to the model property containing the search phrase
  • search: A function to trigger a search. Should invoke mlSearch.search(). (MLSearchController#search)
  • suggest: A function to get search phrase suggestions. Should invoke mlSearch.suggest(qtext). (MLSearchController#suggest)
  • template: optional. A URL referencing a template to be used with the directive. If empty, the default bootstrap template will be used. If "fa", a bootstrap/font-awesome template will be used. Note: the "fa" template requires bootstrap 3.2.0 or greater.

Example:

<ml-input qtext="ctrl.qtext" search="ctrl.search(qtext)" suggest="ctrl.suggest(val)"></ml-input>

Generated by JSDoc 3.3.3 on February 11, 2016.