11# vuetify-datetime-picker
2+
23[ ![ GitHub license] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://github.com/darrenfang/vuetify-datetime-picker/blob/master/LICENSE )
34[ ![ npm version] ( https://img.shields.io/npm/v/vuetify-datetime-picker.svg?style=flat )] ( https://www.npmjs.com/package/vuetify-datetime-picker )
45[ ![ CircleCI] ( https://img.shields.io/circleci/project/github/darrenfang/vuetify-datetime-picker.svg )] ( https://circleci.com/gh/darrenfang/vuetify-datetime-picker )
56
67DatetimePicker component for Vuetify.js.
78
8- [ Use this for Vuetify 1.5.x.] ( https://github.com/darrenfang/vuetify-datetime-picker/tree/v1.x " Use this for Vuetify 1.5.x. " )
9+ [ Use this for Vuetify 1.5.x.] ( https://github.com/darrenfang/vuetify-datetime-picker/tree/v1.x ' Use this for Vuetify 1.5.x. ' )
910
10- [ Online Demo] ( http://darrenfang.github.io/vuetify-datetime-picker/ " Online Demo " )
11+ [ Online Demo] ( http://darrenfang.github.io/vuetify-datetime-picker/ ' Online Demo ' )
1112
1213## Installation
1314
@@ -32,43 +33,40 @@ Vue.use(DatetimePicker)
3233Once installed, it can be used in a template as simply as:
3334
3435``` html
35- <v-datetime-picker
36- label =" Select Datetime"
37- v-model =" datetime" >
38- </v-datetime-picker >
36+ <v-datetime-picker label =" Select Datetime" v-model =" datetime" > </v-datetime-picker >
3937```
4038
4139## Properties
4240
43- | Name | Type | Default Value | Description |
44- | ------------------ | ------------- | ------------------- | -------------------------------------------------------------------------------------- |
45- | datetime (model) | Date/String | | Time picker model. |
46- | disabled | Boolean | false | Input is disabled. |
47- | label | string | | Sets input label. |
48- | width | Number | 340 | The width of the content. |
49- | format | string | YYYY-MM-DD HH:mm: ss | Defines the format of a datetime displayed in field. |
50- | timePickerFormat | string | 24hr | Defines the format of a time displayed in picker. Available options are ampm and 24hr. |
51- | locale | string | en-us | Sets the locale. Accepts a string with a BCP 47 language tag. |
52- | okText | string | OK | Sets the text of the ok button. |
53- | clearText | string | CLEAR | Sets the text of the clear button. |
54- | loading | Boolean | false | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
55- | errorMessages | String/Array | | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
56- | errorCount | Number/String | 1 | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
57- | error | Boolean | false | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
58- | hideDetails | Boolean | false | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
59- | appendIcon | String | | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
60- | prependIcon | String | | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields " Vuetify Docs " ) |
41+ | Name | Type | Default Value | Description |
42+ | ---------------- | ------------- | ------------------- | - -------------------------------------------------------------------------------------- |
43+ | datetime (model) | Date/String | | Time picker model. |
44+ | disabled | Boolean | false | Input is disabled. |
45+ | label | string | | Sets input label. |
46+ | width | Number | 340 | The width of the content. |
47+ | format | string | YYYY-MM-DD HH:mm: ss | Defines the format of a datetime displayed in field. |
48+ | timePickerFormat | string | 24hr | Defines the format of a time displayed in picker. Available options are ampm and 24hr. |
49+ | locale | string | en-us | Sets the locale. Accepts a string with a BCP 47 language tag. |
50+ | okText | string | OK | Sets the text of the ok button. |
51+ | clearText | string | CLEAR | Sets the text of the clear button. |
52+ | loading | Boolean | false | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
53+ | errorMessages | String/Array | | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
54+ | errorCount | Number/String | 1 | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
55+ | error | Boolean | false | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
56+ | hideDetails | Boolean | false | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
57+ | appendIcon | String | | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
58+ | prependIcon | String | | see [ Vuetify Docs] ( https://vuetifyjs.com/zh-Hans/components/text-fields ' Vuetify Docs ' ) |
6159
6260## Events
6361
64- | Name | Arguments | Description |
65- | ----------- | ----------------------- | - ----------------------- |
66- | input | value (Date/String) | The updated bound model |
62+ | Name | Arguments | Description |
63+ | ----- | ------------------- | ----------------------- |
64+ | input | value (Date/String) | The updated bound model |
6765
6866## Slots
6967
70- | Name | Description |
71- | ----------- | ----------------------------------------- |
72- | dateIcon | Slot to put custom icon in the date tab. |
73- | timeIcon | Slot to put custom icon in the time tab. |
74- | actions | Slot to put custom buttons in the dialog. |
68+ | Name | Description |
69+ | -------- | ----------------------------------------- |
70+ | dateIcon | Slot to put custom icon in the date tab. |
71+ | timeIcon | Slot to put custom icon in the time tab. |
72+ | actions | Slot to put custom buttons in the dialog. |
0 commit comments