Skip to content

Releases: kartik-v/yii2-widget-select2

Version 2.0.5

21 Dec 18:28
Compare
Choose a tag to compare

Date: 21-Dec-2015

  • (enh #99): Add messages and translations support.
  • (enh #98): Various enhancements to the Select2 widget.
    • Fix the plugin bug which does not close the dropdown when a value is cleared using the x clear indicator.
    • Enhance widget to show bootstrap success and error states for active field trapped errors
    • Better and more dynamic theming support
    • Allow select2 to be reset correctly when parent form is reset (controlled by boolean property changeOnReset)
    • (ref enh #69): Enable SELECT ALL and UNSELECT ALL to toggle all options for multiple select (new property toggleAllSettings). Allow complete configuration and styling of the same .
    • (ref enh #97): Enable select2 dropdown to maintain the right order of tags/options for multiple select (new boolean property maintainOrder which defaults to false. Set this to true to maintain order)
    • Consolidate and refactor code to just call one additional JS initialization script after plugin initialization. A new data-attribute data-s2-options is now stored in parent select input. This will store the global variable that will maintain the additional Json encoded options to be used by initS2Loading method.
  • (enh #97): Allow maintaining order of pills selected for multiple select.
  • (enh #69): Add ability to select and unselect all options for multiple select.

Version 2.0.4

16 Dec 19:39
Compare
Choose a tag to compare

Date: 14-Dec-2015

  • (enh #96): Enhance fix for clearing Select2 selection.
  • (enh #94): Update to latest release of Select2 plugin.
  • (enh #67): Remove redundant code in embedAddon.

Version 2.0.3

12 Sep 19:57
Compare
Choose a tag to compare

Date: 13-Sep-2015

  • (enh #64): Ability to reset Select2 on form reset.
  • (enh #58): Enhance styling of Select2 Krajee theme for non input groups.
  • (enh #57): Better handling of multiple property.

Version 2.0.2

01 Jul 16:34
Compare
Choose a tag to compare

Date: 01-Jul-2015

  • (enh #54): Styling for select2 on focus (via tab and applicable only for THEME_KRAJEE).
  • (enh #53): Correct validation of values using isset instead of empty.
  • Rename lib folder to assets for consistency.

Version 2.0.1

17 Jun 17:17
Compare
Choose a tag to compare

Date: 07-Jun-2015

  • (enh #49): Allow custom tags to be added for both single select and multiple select.
  • (enh #44): Trigger custom event krajeeselect2:cleared.
  • (enh #43): Code style and formatting fixes.
  • (bug #42): Fix plugin bug that prevents clearing Select2 input correctly.
  • (enh #34): Better initialization for data and multiple ajax select.
  • (enh #32): More correct language validation.
  • (enh #28): Better width style validation for Select2.

Version 2.0.0

09 May 16:22
Compare
Choose a tag to compare

Date: 09-May-2015

Major revamp to the widget. Version bumped to release v2.0.0.

  • (enh #27): Updates Select2 plugin to release v4.0. The following additional functionalities and changes should be expected with this new release:
    • New theme property that allows you to set themes in Select2 to style your widget.
    • A brand new theme by Krajee Select2::THEME_KRAJEE is specially styled for Select2. This will help achieve various new yii2-widget-select2 features. This theme matches the bootstrap 3 styling with enhancements.
    • Additional themes provided in form of Select2::THEME_DEFAULT, Select2::THEME_CLASSIC, and Select2::THEME_BOOTSTRAP. One can add their own custom theme and configure the widget.
    • No more query plugin property needed. It is also not mandatory to configure data even if you have not set tags or query or ajax. Widget will intelligently evaluate the properties and default list values.
    • Enhanced tagging support. Use it just like a multiple select but with taggable values. In addition, one can create tags on the fly.
    • Enhanced ajax support. Refer the demos for details.
    • The initSelection method of Select2 3.5.x plugin is obsolete/removed. New initValueText property is been provided with the Select2 widget to cater to this (e.g. for ajax based loading).
    • Ability to disable selective option values in the Select2 dropdown OR add HTML attributes to selective options.
    • Enhancement by Krajee to disable the search box to use like a normal select.
    • Enhancements to locales and translations. Allow multiple language Select2 widgets on the same page.

Version 1.0.1

03 May 13:36
Compare
Choose a tag to compare

Date: 03-May-2015

Note

This will be the last release that supports Select2 3.x plugin version (the last version being Select2 plugin version 3.5.2). Future releases will start using the Select2 4.0 version which is a major rewrite of Select2 plugin with various enhancements and some BC breaking changes.

Version 1.0.0

09 Nov 18:26
Compare
Choose a tag to compare

Date: 09-Nov-2014