Skip to content

Commit

Permalink
fix(CDatePicker, CDateRangePicker): add support for missing `weekdayF…
Browse files Browse the repository at this point in the history
…ormat` option
  • Loading branch information
mrholek committed Sep 1, 2024
1 parent b627e3b commit eca252d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/src/date-range-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const Default = {
todayButton: 'Today',
todayButtonClasses: ['btn', 'btn-sm', 'btn-primary', 'me-auto'],
valid: false,
weekdayFormat: 2,
weekNumbersLabel: null
}

Expand Down Expand Up @@ -165,6 +166,7 @@ const DefaultType = {
todayButton: '(boolean|string)',
todayButtonClasses: '(array|string)',
valid: 'boolean',
weekdayFormat: '(number|string)',
weekNumbersLabel: '(string|null)'
}

Expand Down Expand Up @@ -449,6 +451,7 @@ class DateRangePicker extends BaseComponent {
showAdjacementDays: this._config.showAdjacementDays,
showWeekNumber: this._config.showWeekNumber,
startDate: this._startDate,
weekdayFormat: this._config.weekdayFormat,
weekNumbersLabel: this._config.weekNumbersLabel
}
}
Expand Down

0 comments on commit eca252d

Please sign in to comment.