I am trying to make the text box of jui DatePicker in Yii2 look more like the other text boxes, by adding 'form-control' to the class name of the input control, when rendered.
I tried using clientOptions like this...
'clientOptions' => [ 'class' => 'form-control' ]
'clientOptions' => [ 'className' => 'form-control' ]
...and also as widget options, but am unable to figure this out.
Compared to Bootstrap Datetimepicker, the jui one looks really ugly.
Any ideas how I can add a class or make it look like other textboxes?
I have a simple datepicker, no fancy formattings, but am using it in my model.
Figured it out. It was simply...
'options' => ['class' => 'form-control']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With