You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -33,6 +33,7 @@ Also DatePickerX provides global `DatePickerX` object with following methods:
33
33
34
34
### DatePickerX options
35
35
*`mondayFirst` - if `true`, set Monday as start week day. Default: `true`
36
+
36
37
*`format` - date format. It's being used for formatting input values and returned values from `getValue` methods. Default: `yyyy/mm/dd`. Supports following literals:
37
38
*`d` - day of the month without leading zeros (1-31)
38
39
*`dd` - day of the month with leading zeros (01-31)
@@ -43,15 +44,35 @@ Also DatePickerX provides global `DatePickerX` object with following methods:
43
44
*`MM` - full textual representation of a month. See `singleMonthLabels` option
44
45
*`yy` - two-digits representation of a year
45
46
*`yyyy` - four-digits representation of a year
46
-
*`minDate` - minimum date limit. Should be a `Date` object or `null` (no limit). Also you may pass another DatePickerX HTML input which selected date will be set as min date dynamically
47
-
*`maxDate` - maximum date limit. Should be a `Date` object. Also you may pass another DatePickerX HTML input which selected date will be set as min date dynamically
47
+
48
+
*`minDate` - minimum date limit. Should be one of the following types:
49
+
*`null` - no limits. Default value
50
+
* the `Date` object or any valid string for the `Date()` object constructor
51
+
* another DatePickerX HTML input element which selected date will be set as min date dynamically
52
+
* callback function that should return the `Date` object or any valid string for the `Date()` object constructor
53
+
54
+
*`maxDate` - maximum date limit. Should be one of the following types:
55
+
*`null` - no limits. Default value
56
+
* the `Date` object or any valid string for the `Date()` object constructor
57
+
* another DatePickerX HTML input element which selected date will be set as max date dynamically
58
+
* callback function that should return the `Date` object or any valid string for the `Date()` object constructor
59
+
48
60
*`weekDayLabels` - array with textual representation of week days starting with Monday. See `D` literal for `format` option. Default: `['Mo', 'Tu', 'We', 'Th', 'Fr', 'St', 'Su']`
49
-
*`shortMonthLabels` - array with textual representation of short month names. See `M` literal for `format` option. Default: `['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']`
50
-
*`singleMonthLabels`: array with textual representation of full month names. See `MM` literal for `format` option. Default: `['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']`
61
+
62
+
*`shortMonthLabels` - array with textual representation of short month names. See `M` literal for `format` option. Default: `['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']`
63
+
64
+
*`singleMonthLabels`: array with textual representation of full month names. See `MM` literal for `format` option. Default: `['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']`
65
+
51
66
*`todayButton` - if `true` today button should be enabled. Current date will be set as date picker value by clicking this button. Default: `true`
0 commit comments