File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
## [ 2.3.0] (unreleased)
5
5
- New way to use as plugin, old is deprecated
6
+ - Add ` id ` prop
6
7
7
8
8
9
## [ 2.2.0] ( https://github.com/ankurk91/vue-flatpickr-component/compare/2.1.0...2.2.0 )
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ The component accepts these props:
137
137
| input-class | String / Object | ` '' ` | Add CSS class to input |
138
138
| name | String | ` 'date-time' ` | Set input field name |
139
139
| required | Boolean | ` false ` | Make input field required |
140
-
140
+ | id | String | ` 'date-time' ` | Set input field id |
141
141
142
142
## Install in non-module environments (without webpack)
143
143
* Include required files
Original file line number Diff line number Diff line change 71
71
</div >
72
72
73
73
<div class =" form-group" >
74
- <label >Select datetime</label >
75
- <flat-pickr :config =" configs.dateTimePicker" v-model =" form.dateTime" placeholder =" Date Time" ></flat-pickr >
74
+ <label for = " datetime-input " >Select datetime</label >
75
+ <flat-pickr :config =" configs.dateTimePicker" id = " datetime-input " v-model =" form.dateTime" placeholder =" Date Time" ></flat-pickr >
76
76
</div >
77
77
78
78
<div class =" form-group" >
Original file line number Diff line number Diff line change 2
2
3
3
<input type =" text"
4
4
class =" form-control input"
5
+ :id =" id"
5
6
:class =" inputClass"
6
7
:name =" name"
7
8
:placeholder =" placeholder"
46
47
required: {
47
48
type: Boolean ,
48
49
default: false
49
- }
50
+ },
51
+ id: {
52
+ type: String ,
53
+ },
50
54
},
51
55
data () {
52
56
return {
You can’t perform that action at this time.
0 commit comments