close date picker on close button kartik yii2 code example
Example 1: kartik datepicker
$form->field($model, 'attribute')->widget(\kartik\date\DatePicker::classname(), [
'pluginOptions' => [
'autoclose' => true,
'format' => 'yyyy-mm-dd',
'todayHighlight' => true
]
]);
Example 2: kartik datepicker
$ php composer.phar require kartik-v/yii2-widget-datepicker "@dev"