NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1873 most downloaded on Packagist
Base library and foundation components for all Yii2 Krajee extensions.
Latest stable
v3.0.5
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 2.1 years
Nearly every release is documented
notes for 49 of 50 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
50 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
(enh #119): Allow translations to work better when widget is extended (new widget property sourcePath). New property sourcePath added to WidgetTrait a
Date: 01-Jun-2022
sourcePath added to WidgetTrait and used in Widget and InputWidget./**
* @var string directory path to the original widget source. If not set, will default to the working directory for
* the current widget's class. Setting this property can be useful in specific cases, like when you are extending
* the Krajee widget with your own custom namespaced class. In that case, set this property to the original Krajee
* Widget Base path. Yii path alias parsing is supported (using `@` symbols). For example:
* ~~~
* // your custom extended widget
* namespace myapp\widgets;
* class MyDateRangePicker extends kartik\daterange\DateRangePicker {
* // directly set the property to the original Krajee base widget directory
* // you can use Yii path aliases
* public $sourcePath = '@vendor/kartik-v/yii2-date-range/src';
* }
*
* // Alternatively you can also override this property while rendering the widget
* // view.php: where widget is rendered
* use myapp\widgets\MyDateRangePicker;
*
* echo MyDateRangePicker::widget([
* 'name' => 'custom',
* 'sourcePath' => '@vendor/kartik-v/yii2-date-range/src'
* ]);
* ~~~
*/
public $sourcePath;
(enh #118): Correct substr function use and add new strncmp method.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Date: 26-Feb-2022
substr function use and add new strncmp method.New class Lib for PHP internal base methods (for addressing NULL params deprecation in PHP versions >= v8.1).
Date: 26-Feb-2022
Lib for PHP internal base methods (for addressing NULL params deprecation in PHP versions >= v8.1).Date: 26-Feb-2022
Lib for PHP internal base methods (for addressing NULL params deprecation in PHP versions >= v8.1).Enhance & standardize php docs for new website https://docs.krajee.com.
Date: 10-Jan-2022
getDropdownClass.Add BootstrapIconsAsset bundle.
Date: 03-Sep-2021
(enh #113): Add bootstrap 5.x support.
Date: 01-Sep-2021
(enh #112): Add new bootstrap CSS Class map BS_PANEL_SECONDARY.
BS_PANEL_SECONDARY.(enh #108): Add new bootstrap CSS Class map BS_HIDE.
Date: 13-Mar-2019
BS_HIDE.(enh #106): Back and forward browser bug for PJAX.
Date: 04-Dec-2018
pjaxDuplicationFix available in widgets/extensions that use kartik\base\WidgetTraitYii::$app->params['pjaxDuplicationFix']Yii::$app->params['pjaxDuplicationFix'] if not set will default to trueYii::$app->params['pjaxDuplicationFix'] will globally control the pjax duplication fix for all Krajee widgets(enh #105): Allow global setting of AssetBundle::bsDependencyEnabled via Yii::$app->params.
Date: 27-Nov-2018
AssetBundle::bsDependencyEnabled via Yii::$app->params.Date: 27-Nov-2018
AssetBundle::bsDependencyEnabled via Yii::$app->params.(enh #104): Allow Bootstrap Asset Bundle dependency to be configurable.
Date: 26-Nov-2018
bsDependencyEnabled in kartik\base\AssetBundle (Note that all Krajee extension asset bundles based on bootstrap styles extend this class). The property bsDependencyEnabled defaults to true whereby based on the bsVersion, the asset bundle dependency is set with one of yii\bootstrap\BootstrapAsset or yii\bootstrap4\BootstrapAsset. If one needs custom control and load their own bootstrap assets - set this property to false via yii2 asset manager component in your yii2 application config.Return widget instance in addCssClass & removeCssClass methods in BootstrapTrait for easy chaining of these methods.
Date: 10-Nov-2018
addCssClass & removeCssClass methods in BootstrapTrait for easy chaining of these methods.yii2-bootstrap or yii2-bootstrap4 installs.(enh #101): Remove composer dependency on yii2 bootstrap.
Date: 09-Oct-2018
bsVersion initialization.Enhance BootstrapTrait::getCssClass method.
Date: 27-Sep-2018
BootstrapTrait::getCssClass method.Date: 27-Sep-2018 - Bump up version.
Date: 27-Sep-2018
(enh #100): Configurable conversion classes between Bootstrap Versions.
Date: 26-Sep-2018
Implement BootstrapInterface and bsColCssPrefixes.
Date: 22-Sep-2018
BootstrapInterface and bsColCssPrefixes.Enhance Config to include Config::hasCssClass method.
Date: 20-Sep-2018
Config to include Config::hasCssClass method.(bug #95): Correct InputWidget.
Date: 05-Sep-2018
InputWidget.Update Module to include bsVersion configuration.
Date: 29-Aug-2018
Module to include bsVersion configuration.AssetBundle to include new method registerBundle for reading BS Version from widgets.BootstrapTrait to include better BS Version parsing methods.Enhance bootstrap 4 addon rendering.
Date: 20-Aug-2018
(enh #92): Remove yii2-bootstrap4 dependency.
Date: 16-Aug-2018
yii2-bootstrap4 dependency.Refactor code for Bootstrap 4 support.
Date: 12-Aug-2018
animate.css to latest release.src folder.getModule to retrieve correct module.(#80): Add ability to configure module id in widgets.
Date: 29-Sep-2017
hashVarLoadPosition for InputWidget and Widget.(enh #74): Allow registering variables in closures by setting them in global namespace.
Date: 22-Feb-2017
BaseAssetBundle without JQuery and Bootstrap assets dependency.(enh #72): Set a timeout for plugin events callbacks.
Date: 04-Sep-2016
(enh #67): Update Latvian translations.
Date: 19-Aug-2016
(enh #60): New property enablePopStateFix (addendum to #59).
Date: 08-May-2016
enablePopStateFix (addendum to #59).pluginEvents.document.body on load event and trap the plugin selector identifier within that.Html5Input widget init.yii\web\YiiAsset.Date: 11-Apr-2016 - Better enhanced fix for #59.
Date: 11-Apr-2016
(enh #56): Correct date range picker repo in Config.
Date: 09-Apr-2016
(enh #52): Enhance widget trait for better PJAX initialization.
Date: 10-Jan-2016
pluginDestroyJs for destroying plugin before initialization(enh #50): Enhance Html5Input to accept more input types.
Date: 27-Dec-2015
(bug #49): Correct module and sub-module validation in Config::getModule.
Date: 11-Dec-2015
Config::getModule.(bug #48): Correct initialization of i18N.
Date: 25-Nov-2015
(enh #40): Various enhancements for PJAX .
Date: 22-Nov-2015
Html5Input initialization.(enh #37): Set range input caption to change during slide.
Date: 16-Jun-2015
Json::htmlEncode as per yii release v2.0.4.(enh #36): Add kv-input-group-hide class.
Date: 09-May-2015
kv-input-group-hide class.(enh #30): Improve translation trait for determining messages folder.
Date: 03-May-2015
addLanguage method in AssetBundle.(enh #28): Create WidgetTrait for better code reuse.
Date: 13-Feb-2015
getModule and initModule methods in Config.(enh #26): Enhance Widget options to store multiple plugin config.
Date: 25-Jan-2015
Widget options to store multiple plugin config.(enh #24): Revert use of DIRECTORY_SEPARATOR and use forward slash instead.
Date: 21-Jan-2015
(enh #23): Enhance AssetBundle for over riding empty assets from AssetManager.
Date: 14-Jan-2015
Fix kartik-v/yii2-widget-datepicker#10 - Language definition in pluginOptions
Date: 12-Jan-2015
(bug #16): variable $short in InputWidget in method setLanguage set without $prefix.
Date: 16-Dec-2014
$short in InputWidget in method setLanguage set without $prefix.parseDateFormat to convert formats rightly to PHP DateTime format.noSupport message translation in Html5Input.Html5Input.(enh #11): Added new properties disabled and readonly to InputWidget and Html5Input.
Date: 06-Dec-2014
disabled and readonly to InputWidget and Html5Input.
initDisability is been created for disability validation across Input Widgetsdisabled or readonly optionDatePicker or DateTimePickerInputWidget to include getPluginScript method.self methods to static.getPluginScript.(enh #9): Enhanced language validation for combined ISO-639 and ISO-3166 codes
Date: 29-Nov-2014
(enh #9): Enhanced language validation for combined ISO-639 and ISO-3166 codes
setLanguage method in InputWidgetinitLanguage method to include a parameter full which defaults to false to use the ISO-639 language code.(enh #10): Enhanced language and directory methods in Config
Two new methods is added to Config helper class:
getCurrentDir - gets the current directory of the extended class objectfileExists - modified file_exists method after replacing the slashes with right directory separator(enh #6): Enhance InputWidget for attaching multiple jQuery plugins.
Date: 25-Nov-2014
InputWidget for attaching multiple jQuery plugins.The following HTML5 data attributes are removed and not registered anymore with the input:
data-plugin-name the name of the plugindata-plugin-options the client options of the pluginFollowing functionality included in InputWidget and Widget classes:
_pluginName for easy configuration in individual widgets.data-krajee-{name} the client options of the plugin. The tag {name} will be replaced with the
registered jQuery plugin name (e.g. select2, typeahead etc.)._dataVar included for generating the above data attribute.(bug #2): AssetBundle::EMPTY_PATH is not setting sourcePath to null.
Date: 25-Nov-2014
Config.InputWidget.Validation for sub repositories containing input widgets.
Date: 10-Nov-2014
Html5Input class and Html5InputAsset bundle.AnimateAsset bundle.Nothing published for this version
One column per quarter.