Closed siromidz closed 3 years ago
Hello @siromidz Just use it as a widget in your GridView's attribute like this:
[
'attribute' => 'updated_at',
'value' => 'updated_at',
'filter' => mrlco\datepicker\Datepicker::widget([
'model' => $searchModel,
'attribute' => 'updated_at',
'template' => '{addon}{input}',
'clientOptions' => [
'format' => 'YYYY/MM/DD' // Use any format (or any other options) you need
]
]),
'format' => 'html',
],
thanks but something else when I use it, it is not empty.
when I use it, it is not empty.
What do you mean?
when I use it, it is not empty.
What do you mean?
how can I empty the input?(1399/12/09)
This issue is related to this library. Have you ever seen the options of Babakhani's Persian Datepicker ?
maybe you should set initialValue
to false.
thanks. solved.
hi how can I use this DatePicker to filter a date column in a Gridview? I save gregorian date and show Jalali date