Closed jones6951 closed 9 years ago
I am trying to use this widget to render a dropdown. However, the following code only shows a single item in the list, and I cannot select a different value.
<?= $form->field($model, 'date_format')->widget(Selectize::className(), [ 'value' => 'dd/mm/yyyy,mm/dd/yyyy,yyyy-mm-dd,d M Y,M d, Y', 'clientOptions' => [ 'maxItems' => 1, ], ]) ?>
You need to set items array not value
items
value
I am trying to use this widget to render a dropdown. However, the following code only shows a single item in the list, and I cannot select a different value.