Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Releases: sliptree/bootstrap-tokenfield

Multiple dataset support & renamed events

26 Apr 13:25
Compare
Choose a tag to compare

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 now tokenfield:createtoken
  • tokenfield:createtoken is now tokenfield:createdtoken

There are 2 new events:

  • tokenfield:editedtoken - fires when a token is ready for editing
  • tokenfield: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 doing return false

Maintenance release

10 Mar 10:24
Compare
Choose a tag to compare
  • Tokenfield now respects tabindex
  • Tweak invalid token border color
  • Fixes for tokenfield input width calculation

Fix build #2

07 Mar 07:17
Compare
Choose a tag to compare

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.

07 Mar 07:02
Compare
Choose a tag to compare

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

06 Mar 19:59
Compare
Choose a tag to compare
  • Refactored tests to jsdom. Tests can now be run with npm rum
  • Small improvements to the package

Refactor events

06 Mar 13:10
Compare
Choose a tag to compare

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