Similarly, if bsVersion is set to 3.x and yiisoft/yii2-bootstrap is not installed, an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap extension. If bsVersion is set to 4.x and yiisoft/yii2-bootstrap4 is not installed, then an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap4 extension.
If bsVersion is set to 5.x and yiisoft/yii2-bootstrap5 is not installed, then an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap5 extension. This dependency has not been pre-built into the composer configuration for Krajee extensions, to allow better control to the developers in configuring their bootstrap library version. You need to install one of yiisoft/yii2-bootstrap or yiisoft/yii2-bootstrap4 or yiisoft/yii2-bootstrap5 extensions manually in your application to enable Bootstrap 3.x or 4.x or 5.x functionality respectively. Allow multiple language Select2 widgets on the same page. for ajax based loading).Ībility to disable selective option values in the Select2 dropdown OR add HTML attributes to selective options.Įnhancement by Krajee to disable the search box to use like a normal select.Įnhancements to locales and translations. New initValueText property is been provided with the Select2 widget to cater to this (e.g. The initSelection method of Select2 3.5.x plugin is obsolete/removed. In addition, one can create tags on the fly.Įnhanced ajax support. Use it just like a multiple select but with taggable values. Widget will intelligently evaluate the properties and default list values.Įnhanced tagging support. It is also not mandatory to configure data even if you have not set tags or query or ajax. One canĪdd their own custom theme and configure the widget This theme matches the Bootstrap library styling with various enhancements.Īdditional themes provided in form of Select2::THEME_DEFAULT, Select2::THEME_CLASSIC, and Select2::THEME_BOOTSTRAP. This will help achieve various widget specific enhancements and features. New theme property that allows you to set themes in Select2 to style your widget.Ī brand new theme by Krajee Select2::THEME_KRAJEE is now available and specially styled for yii2-widget-select2. The following new functionalities andĬhanges should be expected with this release. Select2 release v4.0 is a major rewrite over Select2 v4.x / 3.x and hence quite a few enhancements or changes should be expected. New release v2.0: The widget has been revamped and upgraded to v2.0 to implement Select2 plugin release v4.0. Uses Select2 widget for input like any other field. You can setup model validation rules for a model attribute that Normal HTML select or text input, if the browser does not support JQuery. The widget allows graceful degradation to a The widget is specially styled for Bootstrap library. It supports searching, remote data sets,Īnd infinite scrolling of results. This input widget is a jQuery based replacement for select boxes. The Select2 widget is a Yii 2 wrapper for the Select2 jQuery plugin.