epiph/app/packages/meteor-bootstrap-tagsinput/lib/bootstrap-tagsinputdfcc399c6fc7master
bootstrap-tagsinput
README.md
Bootstrap Tags Input ![Build Status](https://travis-ci.org/bootstrap-tagsinput/bootstrap-tagsinput)
Bootstrap Tags Input is a jQuery plugin providing a Twitter Bootstrap user interface for managing tags.
Current stable version: v0.7.1
Usage
Examples can be found here.
- Features
- Objects as tags
- True multi value
- Typeahead
- Designed for Bootstrap 2.3.2 and 3
Objects as tags
Not just support for using strings! This means you can use different values for a tag's label and value. Each tag also holds a reference to the object by which it was created, so by calling <code>tagsinput('items')</code> an array of the original items is returned.
True multi value support
Other implementations just concatenate the values to a comma separated string. This results in <code>val()</code> returning just this string, and when submitting the form, only one big, concatenated value is sent in the request.
Bootstrap Tags Input provides true multivalue support. Just use a <code><select multiple /></code> as your input element, and <code>val()</code> will return an array of the tag values. When submitting the form, an array of values will be sent with the request.
Typeahead support
Integrates with Twitter Bootstraps' 2.3.2 typeahead, or use custom typeahead when using Bootstrap 3.
Development
Install dependencies: <pre> npm install grunt install </pre> Test: <pre> grunt test </pre> Build: <pre> grunt build </pre> Current Library Versions:
- Bootstrap: 3.3.5
- jQuery: 2.1.4
- Typeahead: 0.11.1
Libraries for testing go in the /lib directory.
- History
- 0.7.1
- allowDuplicates not working
- tag text appears when typeahead input looses focus
- [Remove duplicate method removeAll in manual](https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/pull/427)
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5
- 0.4
- 0.3.13
- #5: Trigger events on original input/select
- Loads of fixes merged with help of @janvt, @rlidwka and @kuraga: thanks for helping me out!
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
License
This project is licensed under [MIT](https://raw.github.com/bootstrap-tagsinput/bootstrap-tagsinput/master/LICENSE "Read more about the MIT license").