0.0.3 • Published 7 years ago

angular-materializecss-autocomplete v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

angular-materializecss-autocomplete

Angular directive to create autocompletes with materialize-css

Install

Bower

bower install angular-materializecss-autocomplete

npm

npm i angular-materializecss-autocomplete

Import the file in your index.

 <script src="app/angular-materializecss-autocomplete.js"></script>

Declare a dependency on principal module

angular.module('myModule', ['angularMaterializeAutoComplete']);

Usage

In your view declare the directive

  <auto-complete model="vm.cidade" func="vm.getDragons" property="name" icon-prefix="textsms" label="olosco"></auto-complete>

Options:

AtributteRequiredDescription
model '='trueModel of input
label '@'trueLabel of input
func '&'trueFunction to return data (promisse or array)
iconPrefix '@'falseIncon of input
property '@'    true    Property of data object display in search
onModelChanged '&'falseA callback executed when a match is selected
validadeObject '&'false    in progress
limit '@'falsein progress
0.0.3

7 years ago

0.0.2

7 years ago

0.0.9

7 years ago

0.0.1

7 years ago