2amigos / yii2-date-time-picker-widget

Bootstrap DateTimePicker Widget for Yii2
Other
44 stars 35 forks source link

calendar icon button is not showing on datetime picker, how can i show that? #15

Closed asifrafeeq closed 7 years ago

asifrafeeq commented 8 years ago
<?= $form->field($model, 'fight_datetime')->widget(DateTimePicker::className(), [
                'language' => 'en',
                'size' => 'ms',
                'template' => '{input}{addon}',
                'pickButtonIcon' => 'glyphicon glyphicon-calendar',
                'inline' => false,
                'clientOptions' => [
                    'viewSelect' => 'decade',
                    'minView' => 0,
                    'maxView' => 4,
                    'autoclose' => true,
                    'format'=> "yyyy-mm-dd - hh:ii",
                    'autoclose' => true,
                    'startDate' => "2013-02-14 10:00",
                    'minuteStep' => 10,
                    'todayBtn' => false,
                    'showMeridian' => true,
                    'todayHighlight' => true,
                    'keyboardNavigation' => true,
                    'changeYear' => true,

                ]
            ]);?>
MazheM commented 7 years ago

Maby not:

'template' => '{input}{addon}'

but

'template' => '{input}{button}'

?

asifrafeeq commented 7 years ago

gr8... thanks a lot, 'template' => '{input}{button}' works for me

tonydspaniard commented 7 years ago

Thanks @MazheM