namespaceml-input
Source: directives/
angular element directive; a search-input form.
attributes:
qtext
: a reference to the model property containing the search phrasesearch
: A function to trigger a search. Should invokemlSearch.search()
. (MLSearchController#search)suggest
: A function to get search phrase suggestions. Should invokemlSearch.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>