mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 03:07:31 +09:00
Bug 1363672 - Add step support to date picker
This commit is contained in:
parent
a1c4899124
commit
1cca8d40f3
5 changed files with 64 additions and 18 deletions
|
|
@ -22,6 +22,8 @@ function DatePicker(context) {
|
|||
* {Number} date [optional]
|
||||
* {String} min
|
||||
* {String} max
|
||||
* {Number} step
|
||||
* {Number} stepBase
|
||||
* {Number} firstDayOfWeek
|
||||
* {Array<Number>} weekends
|
||||
* {Array<String>} monthStrings
|
||||
|
|
@ -41,10 +43,10 @@ function DatePicker(context) {
|
|||
* Set initial date picker states.
|
||||
*/
|
||||
_setDefaultState() {
|
||||
const { year, month, day, min, max, firstDayOfWeek, weekends,
|
||||
const { year, month, day, min, max, step, stepBase, firstDayOfWeek, weekends,
|
||||
monthStrings, weekdayStrings, locale } = this.props;
|
||||
const dateKeeper = new DateKeeper({
|
||||
year, month, day, min, max, firstDayOfWeek, weekends,
|
||||
year, month, day, min, max, step, stepBase, firstDayOfWeek, weekends,
|
||||
calViewSize: CAL_VIEW_SIZE
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue