Releases: kartik-v/yii2-widget-select2
Releases · kartik-v/yii2-widget-select2
Version 2.0.5
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
anderror
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 tofalse
. Set this totrue
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 byinitS2Loading
method.
- Fix the plugin bug which does not close the dropdown when a value is cleared using the
- (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
Version 2.0.3
Version 2.0.2
Version 2.0.1
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
andmultiple
ajax select. - (enh #32): More correct language validation.
- (enh #28): Better width style validation for Select2.
Version 2.0.0
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
, andSelect2::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 configuredata
even if you have not settags
orquery
orajax
. 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. NewinitValueText
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.
- New
Version 1.0.1
Date: 03-May-2015
- (enh #22): Enhance JS code to support older browser/IE versions.
- (enh kartik-v/yii2-krajee-base#34, kartik-v/yii2-krajee-base#35): Enhance i18n translation locales.
- (enh #13): Add ability to hide search control and use as normal select.
- (enh #2, #3): Register assets based on availability of locale files.
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
Date: 09-Nov-2014
- Initial release
- Sub repo split from yii2-widgets