DatePicker::className() with glyphicon-calendar

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',

            ],

        ])

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


'buttonImage' => Yii::getAlias('@web/img/image.png');