Multiple dataset support & renamed events

@ragulka ragulka released this Apr 26, 2014 · 49 commits to master since this release

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

Downloads

Maintenance release

@ragulka ragulka released this Mar 10, 2014 · 76 commits to master since this release

  • Tokenfield now respects tabindex
  • Tweak invalid token border color
  • Fixes for tokenfield input width calculation

Downloads

Fix build #2

@ragulka ragulka released this Mar 7, 2014

Sorry again! This time, I forgot to bump the package version. I must not have had a very good sleep.

Downloads

Fix build. Update & improve styles. Make better use of LESS.

@ragulka ragulka released this Mar 7, 2014 · 98 commits to master since this release

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

Downloads

JSDOM tests

@ragulka ragulka released this Mar 6, 2014 · 101 commits to master since this release

  • Refactored tests to jsdom. Tests can now be run with npm rum
  • Small improvements to the package

Downloads

Refactor events

@ragulka ragulka released this Mar 6, 2014 · 112 commits to master since this release

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

Downloads