Closed s1lver closed 7 years ago
This pull request includes a
There is an error where it is not possible to override the default value for "ranges" This code has no effect:
DateRangePicker::className(), [ 'presetDropdown' => true, 'hideInput' => true, 'pluginOptions' => [ 'ranges' => [ 'Неделя' => ["moment().startOf('day').subtract(6, 'days')", "moment()"], ] ] ]
Just set presetDropdown to false. Then you can overwrite ranges. This PR may not be needed. If you feel something different - update and I will reopen this issue.
presetDropdown
false
Thanks!
Scope
This pull request includes a
Changes
Related Issues
There is an error where it is not possible to override the default value for "ranges" This code has no effect: