Calcio
(Cálcio)
February 12, 2016, 2:24pm
1
Hi.
I try to implement a DatePiker and use a glyphicon-calendar. I can’n find on the manual where I put the HTMLs tag to show a Calendar icon. Is this possible?
$form->field($model, 'DATA_FIM')->widget(DatePicker::className(),[
'clientOptions' => [
'changeMonth' => true,
'changeYear' => true,
'yearRange' => '1996:2099',
],
])
soul
(Soulgadn)
February 12, 2016, 2:36pm
2
You can add calendar icon with this way:
$form->field($model, 'DATA_FIM')->widget(DatePicker::className(),[
'clientOptions' => [
'changeMonth' => true,
'changeYear' => true,
'yearRange' => '1996:2099',
'buttonImage' => 'images/calendar.gif',
'buttonImageOnly' => true,
],
])
Calcio
(Cálcio)
February 12, 2016, 2:41pm
3
Soul:
You can add calendar icon with this way:
$form->field($model, 'DATA_FIM')->widget(DatePicker::className(),[
'clientOptions' => [
'changeMonth' => true,
'changeYear' => true,
'yearRange' => '1996:2099',
'buttonImage' => 'images/calendar.gif',
'buttonImageOnly' => true,
],
])
I tryed use it, but the image it not appear. I tried something like ‘@web /img/image.png’, ‘web/img/image.png’ and ‘/img/image.png’
Even I try to do it, it not will work, because I will need a calendar gif not a glyphicon-calendar that a bootstrap provides
soul
(Soulgadn)
February 12, 2016, 2:51pm
4
'buttonImage' => Yii::getAlias('@web/img/image.png');