File tree 5 files changed +29
-2
lines changed 5 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ var state = {
37
37
}
38
38
}
39
39
```
40
- Every Saturday and Sunday is disabled
40
+ Every Saturday and Sunday is disabled
41
41
42
42
## Disable specific days of each month
43
43
``` js
@@ -67,13 +67,16 @@ Following dates are disabled:
67
67
2016-10-18
68
68
69
69
## Disable in given ranges
70
+ ::: tip IMPORTANT
71
+ Both ` to ` and ` from ` properties are required to define a range of dates to highlight.
72
+ :::
70
73
``` js
71
74
var state = {
72
75
disabledDates: {
73
76
ranges: [{
74
77
from: new Date (2016 , 11 , 25 ),
75
78
to: new Date (2016 , 11 , 30 )
76
- },
79
+ },
77
80
{
78
81
from: new Date (2017 , 1 , 12 ),
79
82
to: new Date (2017 , 2 , 25 )
Original file line number Diff line number Diff line change 3
3
4
4
| Prop | Type | Default | Description |
5
5
| ----------------------------- | -----------------| ----------- | ----------------------------------------------- |
6
+ | autofocus | String | | Sets html ` autofocus ` attribute on input |
6
7
| bootstrap-styling | Boolean | false | Use bootstrap v4 styling classes. |
7
8
| calendar-button | Boolean | false | Show an icon that that can be clicked |
8
9
| calendar-button-icon | String | | Use icon for button (ex: fa fa-calendar) |
21
22
| inline | Boolean | | To show the datepicker always open |
22
23
| input-class | String\| Object\| Array | | CSS class(es) applied to the input el |
23
24
| language | Object | en | Translation for days and months |
25
+ | maxlength | String | | Sets html ` maxlength ` attribute on input |
24
26
| maximum-view | String | 'year' | If set, higher-level views won't show |
25
27
| minimum-view | String | 'day' | If set, lower-level views won't show |
26
28
| monday-first | Boolean | false | To start the week on Monday |
27
29
| name | String | | Input name property |
28
30
| open-date | Date\| String | | If set, open on that date |
31
+ | pattern | String | | Sets html ` pattern ` attribute on input |
29
32
| placeholder | String | | Input placeholder text |
30
33
| required | Boolean | false | Sets html required attribute on input |
31
34
| ref-name | String | | Sets a ref name directly on the input field |
Original file line number Diff line number Diff line change 32
32
:disabled =" disabled"
33
33
:required =" required"
34
34
:readonly =" !typeable"
35
+ :autofocus =" autofocus"
36
+ :maxlength =" maxlength"
37
+ :pattern =" pattern"
35
38
:tabindex =" tabindex"
36
39
autocomplete =" off"
37
40
@click =" showCalendar(false)"
Original file line number Diff line number Diff line change 24
24
:calendar-button-icon-content =" calendarButtonIconContent"
25
25
:disabled =" disabled"
26
26
:required =" required"
27
+ :autofocus =" autofocus"
28
+ :maxlength =" maxlength"
29
+ :pattern =" pattern"
27
30
:bootstrap-styling =" bootstrapStyling"
28
31
:use-utc =" useUtc"
29
32
:show-calendar-on-focus =" showCalendarOnFocus"
Original file line number Diff line number Diff line change @@ -108,6 +108,21 @@ export default ({
108
108
type: Boolean ,
109
109
default: false ,
110
110
},
111
+ autofocus: {
112
+ type: Boolean ,
113
+ default: false ,
114
+ },
115
+ maxlength: {
116
+ type: [
117
+ Number ,
118
+ String ,
119
+ ],
120
+ default: null ,
121
+ },
122
+ pattern: {
123
+ type: String ,
124
+ default: null ,
125
+ },
111
126
},
112
127
})
113
128
</script >
You can’t perform that action at this time.
0 commit comments