You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New property 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;
The text was updated successfully, but these errors were encountered:
New property
sourcePath
added toWidgetTrait
and used inWidget
andInputWidget
.The text was updated successfully, but these errors were encountered: