<div class="col-xs-3">
<?= $form->field($model, 'fecha')->widget(
DatePicker::classname(),
[
'language' => 'es',
'removeButton' => false,
'options' => [
'placeholder' => 'Fecha:',
'class' => 'form-control',
'id' => 'fecha_desde-input',
'onchange' => 'buscarProyeccion(this.value)'
],
'pluginOptions' =>
[
'startDate' => '01-01-2000',
//'startDate' => date('d-m-Y'),
'autoclose' => true,
'format' => 'dd-mm-yyyy',
]
]
)->label('Fecha'); ?>
</div>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter