Skip to content
This repository has been archived by the owner on Aug 24, 2017. It is now read-only.

Commit

Permalink
Merge pull request #13 from boneskull/master
Browse files Browse the repository at this point in the history
typeahead pass-throughs, better watches
  • Loading branch information
Christopher Hiller committed Sep 21, 2013
2 parents e70df73 + f93860c commit 3fc4fbb
Show file tree
Hide file tree
Showing 19 changed files with 211 additions and 75 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Pure AngularJS tagging widget with typeahead support courtesy of [ui-bootstrap](
Current Version
---------------
```
0.2.7
0.2.8
```

Installation
Expand Down Expand Up @@ -146,6 +146,28 @@ baz = [
Basically, whatever you set here will become the `value` of these tags unless you specify an entire object.
### Typeahead Options
You can pass options through to the typeahead module. Simply pass a `typeahead-options` attribute to the `<tags>` element. Available options are shown here:
```javascript
$scope.typeaheadOpts = {
inputFormatter: myInputFormatterFunction,
loading: myLoadingBoolean,
minLength: 3,
onSelect: myOnSelectFunction, // this will be run in addition to directive internals
templateUrl: '/path/to/my/template.html',
waitMs: 500,
allowsEditable: true
};
```
and:
```html
<tags typeahead-options="typeaheadOpts" model="foo" src="b.value as b.name for b in baz"></tags>
```
Tag Objects
-----------
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-tags",
"version": "0.2.7",
"main": "dist/angular-tags-0.2.7.js",
"version": "0.2.8",
"main": "dist/angular-tags-0.2.8.js",
"dependencies": {
"angular-ui-bootstrap-bower": "~0.6.0",
"angular": "1.2.0-rc.2",
Expand Down
1 change: 0 additions & 1 deletion dist/angular-tags-0.2.7-tpls.map.js

This file was deleted.

2 changes: 0 additions & 2 deletions dist/angular-tags-0.2.7-tpls.min.js

This file was deleted.

Loading

0 comments on commit 3fc4fbb

Please sign in to comment.