Releases: kartik-v/yii2-krajee-base
Releases · kartik-v/yii2-krajee-base
Version 3.0.5
Date: 01-Jun-2022
- (enh #119): Allow translations to work better when widget is extended (new widget property sourcePath).
New propertysourcePath
added toWidgetTrait
and used inWidget
andInputWidget
.
/**
* @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;
Version 3.0.4
Date: 26-Feb-2022
- (enh #118): Correct
substr
function use and add newstrncmp
method. - Enhance PHP Documentation.
Version 3.0.3
Date: 26-Feb-2022
- New class
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.
Version 3.0.2
Date: 10-Jan-2022
- Enhance & standardize php docs for new website https://docs.krajee.com.
- (enh #116): Enhance dependency exception messaging for
getDropdownClass
. - (enh #115): Fix code for older PHP version support.
- (enh #114): Enhancements to HTML 5 input CSS.
Version 3.0.1
Date: 03-Sep-2021
- Add BootstrapIconsAsset bundle.
- Enhancements to support Bootstrap v5.x.
Version 3.0.0
Date: 01-Sep-2021
- (enh #113): Add bootstrap 5.x support.
- Create new major release for Bootstrap v5.x support
Version 2.0.6
- (enh #112): Add new bootstrap CSS Class map
BS_PANEL_SECONDARY
.
Version 2.0.5
Date: 13-Mar-2019
- (enh #108): Add new bootstrap CSS Class map
BS_HIDE
.
Version 2.0.4
Date: 04-Dec-2018
- (enh #106): Back and forward browser bug for PJAX.
- New property
pjaxDuplicationFix
available in widgets/extensions that usekartik\base\WidgetTrait
- The above property if not set will default to
Yii::$app->params['pjaxDuplicationFix']
Yii::$app->params['pjaxDuplicationFix']
if not set will default totrue
- Setting
Yii::$app->params['pjaxDuplicationFix']
will globally control the pjax duplication fix for all Krajee widgets
- New property
Version 2.0.3
Date: 27-Nov-2018
- (enh #105): Allow global setting of
AssetBundle::bsDependencyEnabled
viaYii::$app->params
.