Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wwwmarcos/angular-materializecss-autocomplete

Angular directive to create autocompletes with materialize-css
https://github.com/wwwmarcos/angular-materializecss-autocomplete

angular-directive angularjs auto-complete bower components input-text material-design materializecss npm-package

Last synced: 2 months ago
JSON representation

Angular directive to create autocompletes with materialize-css

Awesome Lists containing this project

README

        

# angular-materializecss-autocomplete
Angular directive to create autocompletes with [materialize-css](http://materializecss.com/)

# Install

## Bower
`bower install angular-materializecss-autocomplete`

## npm
`npm i angular-materializecss-autocomplete`

Import the file in your index.

```html

```

Declare a dependency on principal module
```javascript
angular.module('myModule', ['angularMaterializeAutoComplete']);
```

# Usage
In your view declare the directive

```html

```
## Options:

| Atributte | Required | Description |
| ------------- | --------- |------------- |
| model `'='` | true | Model of input|
| label `'@'` | true | Label of input|
| func `'&'` | true | Function to return data (promisse or array) |
| iconPrefix `'@'` | false | Incon of input|
| property `'@'`     | true     | Property of data object display in search|
| onSelect `'&'` | false | A callback executed when a match is selected|
| onModelChanged `'&'`| false | A callback executed on model change|
| validadeObject `'&'`| false     | [in progress](https://github.com/marcosflorencio/angular-materializecss-autocomplete/issues/4) |
| limit `'@'` | false | [in progress](https://github.com/marcosflorencio/angular-materializecss-autocomplete/issues/6)|