1.0.0-alpha.3 • Published 6 years ago

vuetify2-datetime-picker v1.0.0-alpha.3

Weekly downloads
92
License
MIT
Repository
github
Last release
6 years ago

vuetify2-datetime-picker

GitHub license npm version CircleCI

DatetimePicker component for Vuetify.js ver 2.X.X

Installation

npm install --save vuetify2-datetime-picker

or

yarn add vuetify2-datetime-picker
import Vue from 'vue'
import DatetimePicker from 'vuetify-datetime-picker'
import 'vuetify-datetime-picker/src/stylus/main.styl'

Vue.use(DatetimePicker)

Usage

Once installed, it can be used in a template as simply as:

<v-datetime-picker
        label="Select Datetime"
        v-model="datetime">
</v-datetime-picker>

Properties

NameTypeDefault ValueDescription
datetime (model)Date/StringTime picker model.
disabledBooleanfalseInput is disabled.
labelstringSets input label.
widthNumber320The width of the content.
formatstringYYYY-MM-DD HH:mm:ssDefines the format of a datetime displayed in field.
timePickerFormatstring24hrDefines the format of a time displayed in picker. Available options are ampm and 24hr.
localestringen-usSets the locale. Accepts a string with a BCP 47 language tag.
okTextstringOKSets the text of the ok button.
clearTextstringCLEARSets the text of the clear button.
loadingBooleanfalsesee Vuetify Docs
errorMessagesString/Arraysee Vuetify Docs
errorCountNumber/String1see Vuetify Docs
errorBooleanfalsesee Vuetify Docs
hideDetailsBooleanfalsesee Vuetify Docs
appendIconStringsee Vuetify Docs
prependIconStringsee Vuetify Docs

Events

NameArgumentsDescription
inputvalue (Date/String)The updated bound model

Slots

NameDescription
dateIconSlot to put custom icon in the date tab.
timeIconSlot to put custom icon in the time tab.
actionsSlot to put custom buttons in the dialog.
1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

1.0.0-alpha.0

6 years ago