Skip to content

Commit eca252d

Browse files
committed
fix(CDatePicker, CDateRangePicker): add support for missing weekdayFormat option
1 parent b627e3b commit eca252d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/src/date-range-picker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ const Default = {
116116
todayButton: 'Today',
117117
todayButtonClasses: ['btn', 'btn-sm', 'btn-primary', 'me-auto'],
118118
valid: false,
119+
weekdayFormat: 2,
119120
weekNumbersLabel: null
120121
}
121122

@@ -165,6 +166,7 @@ const DefaultType = {
165166
todayButton: '(boolean|string)',
166167
todayButtonClasses: '(array|string)',
167168
valid: 'boolean',
169+
weekdayFormat: '(number|string)',
168170
weekNumbersLabel: '(string|null)'
169171
}
170172

@@ -449,6 +451,7 @@ class DateRangePicker extends BaseComponent {
449451
showAdjacementDays: this._config.showAdjacementDays,
450452
showWeekNumber: this._config.showWeekNumber,
451453
startDate: this._startDate,
454+
weekdayFormat: this._config.weekdayFormat,
452455
weekNumbersLabel: this._config.weekNumbersLabel
453456
}
454457
}

0 commit comments

Comments
 (0)