Skip to content

Commit

Permalink
clarify autocomplete option
Browse files Browse the repository at this point in the history
  • Loading branch information
aehlke committed Nov 24, 2012
1 parent de51cb8 commit 4d09c2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ Allows overriding the `source` and `select` options that are set by default,
as well as adding any other options you want to pass to the jQuery UI Autocomplete widget, such as `minLength` or `delay`.

The `autocomplete.source` should be overridden if you want to use custom autocompletion sources, like an Ajax / XHR response.
The default `autocomplete.source` function filters the strings in **availableTags** and subtracts the already assigned tags.

For example:

$("#mytags").tagit({
autocomplete: {delay: 0, minLength: 2}
});

The default `autocomplete.source` function filters the strings in **availableTags** and subtracts the already assigned tags. It also positions autocomplete underneath tag input. See the full list of available options [here](http://jqueryui.com/demos/autocomplete/).

### removeConfirmation (boolean)

Expand Down

0 comments on commit 4d09c2b

Please sign in to comment.