This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
Releases: sliptree/bootstrap-tokenfield
Releases · sliptree/bootstrap-tokenfield
Multiple dataset support & renamed events
This is a pretty major release that involves some breaking changes.
Some events have been renamed (again). Sorry about that, but I just wasn't happy with them.
I believe the new event names make much more sense and are semantically correct.
tokenfield:preparetoken
is nowtokenfield:createtoken
tokenfield:createtoken
is nowtokenfield:createdtoken
There are 2 new events:
tokenfield:editedtoken
- fires when a token is ready for editingtokenfield:removedtoken
- fires after a token is removed from DOM
Other changes and improvements in this release:
- Fixed css path in bower.json #100
- Edit mode fixed when only one token present
- Support readonly inputs
- minLength is now tested against label, instead of value
- Always pass full datum object to typeahead events #116
- Multiple datasets for Typeahead are now supported
- Built-in event handlers can now be cancelled on some events by calling
event.preventDefault()
or doingreturn false
Maintenance release
- Tokenfield now respects tabindex
- Tweak invalid token border color
- Fixes for tokenfield input width calculation
Fix build #2
Sorry again! This time, I forgot to bump the package version. I must not have had a very good sleep.
Fix build. Update & improve styles. Make better use of LESS.
Sorry - I forgot to build the last 2 releases, which means they do not include the updated code in dist folder. Please upgrade to this one ASAP.
Changes:
- Fixed disabled token hover styling
- Make better use of LESS
JSDOM tests
- Refactored tests to jsdom. Tests can now be run with
npm rum
- Small improvements to the package
Refactor events
Changes in this release
- Add typeahead
0.10
support - Events have been renamed. Refer to docs for details.
- Add
tokenfield:inititalize
event - Add
destroy
method - New option:
allowEditing
- setting to false will disable token editing - New option:
limit
- controls maximum numbers of tokens allowed in a field - Add UMD to support AMD, node and browser environments
- Add RTL support
- Fixed: #51, #62, #68
- Internal: Use grunt for builds
- Internal: Use less for stylesheets