-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
Thank you so much for this extension. Im trying to use rangePlugin with two input fields but it doesnt perform like the demo at
https://flatpickr.js.org/plugins/ (it removes date field when editing or changes start date when selecting end date)
Maybe rangePlugin.js should be updated?
<?= $form->field($model, "startDate", getFieldOptions('calendar-check', 'Select start date'))
->widget(FlatpickrWidget::class, [
'theme' =>'material_blue',
'plugins' => [
'rangePlugin' => [
'input'=> "#ios-enddate",
],
],
'locale' => [
'firstDayOfWeek' => 1,
],
'clientOptions' => [
'mode' => 'range',
],
'options' => [
'placeholder' => Yii::t('app', 'Enter').' '.$model->getAttributeLabel('startDate')
],
])->label(false); ?>
Thanks again
Metadata
Metadata
Assignees
Labels
No labels