📜  kartik datepicker - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:55.998000             🧑  作者: Mango

代码示例3
$form->field($model, 'attribute')->widget(DatePicker::classname(), [
    'options' => ['placeholder' => 'Enter birth date ...'],
    'pluginOptions' => [
        'autoclose'=>true,
        'todayHighlight' => true,
        'format' => 'yyyy/mm/dd',?,'yyyy-mm-dd',
    ]
]);