max-favilli/tagmanager — pull request #22 by auxbuss (2012-10-14 12:46:14+00:00)
Title: add delegation of tag list pop-up to bootstrap's typeahead

This patch exposes all of bootstrap's typeahead behaviour to tagmanager.

To use, add the `typeaheadDelegate` option to tagmanager's list of options and pass in a json object with your required typeahead parameters.

For example:
```javascript
typeaheadDelegate: {
source: function(query, process) {
$.get('/tags', { query: query, limit: 10 }, function(data) {
return process(data)
})
},
items: 10,
minLength: 2
}
```
This only makes the ajax call after at least 2 characters have been typed. The typed characters are passed with the call (in `query`).

@max-favilli: This also fixed #11