Skip to content

Releases: selectize/selectize.js

0.8.0

12 Oct 18:08
Compare
Choose a tag to compare
  • Added right-to-left (RTL) environment support (#109).
  • Added multi-property sorting (with configurable direction per field).
  • Added "required" attribute handling (#136, #63). Thanks to @sjhewitt.
  • Added support for the same option in multiple optgroups (#76).
  • Improved width handling of inner textbox when leading/trailing whitespace is present (#122). Thanks to @jacquelinewheeler.
  • Clicking the control when focused now toggles the dropdown when in single mode (#75, #126).
  • Highlight selected item in dropdown on focus (#104, #131).
  • Added "searchConjunction" setting to allow multiple search terms to be joined by an "and" or "or" operator.
  • Added "addPrecedence" setting to allow the "Add..." item to be selected by default when in create mode (#118).
  • Fixed bug causing "remove_button" and "drag_drop" plugins to still be usable when control is locked/disabled (#140).
  • Disabled native browser autocomplete on control.

Multi-Property Sorting

With the new sifter v0.3 integration, you can now sort results by multiple fields. The "sortDirection" setting has been removed.

sortField: [
    {field: 'first_name', direction: 'asc'},
    {field: 'last_name', direction: 'asc'}
]
Special Fields
"$score" A number representing how good of a match an item is for the current search.
"$order" The original index of an option in a <select> before selectize was initialized.

0.7.7

16 Sep 07:06
Compare
Choose a tag to compare
  • Fixed addOptionGroup() ("value" not defined exception).
  • Fixed getItem() and getOption() to handle values with backslashes properly.

0.7.6

15 Sep 07:37
Compare
Choose a tag to compare
  • Fix for original select option order not always being respected #108.
  • Fix from @bawigga for #112 (fixes Array.isArray polyfill).

0.7.0

24 Aug 20:06
Compare
Choose a tag to compare

Features

  • Modularized components. Separates concerns, improves testability, allows development to diverge, and allows code to be shared with other libraries.
  • LESS Stylesheets. With a comprehensive set of variables, skinning is orders of magnitude easier. Furthermore, plugins can take advantage of theme-specific settings.
  • All build files now live in the "dist" folder.
  • New Grunt-based build system.

API

  • Added destroy() method (#35).
  • Removed the "theme" setting. All it did was add an extra class to the control. If you want the same functionality, just add a class to the <select> you're selectizing.
  • Removed the need to pass the value when adding options via addOption(value, data). Now it's simple: addOption(data). The value is extracted from the data automatically, according to the "valueField" setting.

0.6.13

09 Aug 06:03
Compare
Choose a tag to compare
  • The dropdown is now repositioned on scroll to allow for scenarios where the control is contained within a position: fixed element
  • Bug fix for control receiving focus after addItem() calls (#66)
  • Bug fix for items not being re-rendered after updateOption() calls if the value of the option changes (edge case)