Bootstrap Tags Input is a jQuery plugin providing a Twitter Bootstrap user interface for managing tags.
This version has been modified for BootsFaces.
Current stable version: v0.8.1
Examples can be found here.
- Objects as tags
- True multi value
- Typeahead
- Designed for Bootstrap 3.3.7
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 tagsinput('items')
an
array of the original items is returned.
Other implementations just concatenate the values to a comma separated string.
This results in val()
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
<select multiple />
as your input element, and
val()
will return an array of the tag values. When submitting the
form, an array of values will be sent with the request.
Integrates with custom typeahead when using Bootstrap 3.
Install dependencies:
npm install grunt install
Test:
grunt test
Build:
grunt build
Note that the last test of Phantom.js seems to be flaky. Running it multiple time usually makes it pass.
Current Library Versions:
- Bootstrap: 3.3.7
- jQuery: 2.1.4
- Typeahead: 0.11.1
Libraries for testing go in the /lib directory.
-
0.7.2
- Copy the Bootstrap CSS classes to the outer container
- use a clone of the input field (instead of creating an empty one, which used to strip it of every CSS class, style, listener and so on)
-
0.7.1
-
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
This project is licensed under MIT.