1.0.0 • Published 4 years ago

@darenegade/vuetify-datetime-input v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

vuetify-datetime-input

Finally, a simple Vuetify Date/Time Input using native browser features.

Demo

Try it out!

Installation

npm install --save @darenegade/vuetify-datetime-input

or

yarn add  @darenegade/vuetify-datetime-input

Import in main.js.

import Vue from 'vue'
import "@darenegade/vuetify-datetime-input"

...

Usage

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

<v-datetime-input 
    label="Input your Datetime here" 
    v-model="datetime"></v-datetime-input>

Properties

NameTypeDefault ValueDescription
value (model)String (ISO-Date)Date-Time input model.
readonlyBooleanfalseInput is readonly.
disabledBooleanfalseInput is disabled.
hideDetailsBooleanfalseHides details under input.
denseBooleanfalseInput is dense.
filledBooleanfalseInput is filled.
outlinedBooleanfalseInput is outlined.
clearableBooleantrueInput is clearable.
persistentHintBooleanfalseActivates persistent hint.
hintStringfalseText of persistent hint.
labelString""Label of Input.
date-labelString"Date"Label of Date-Input.
time-labelString"Time"Label of Time-Input.
rulesArray[]Validation rules.
incompleteErrorMessageString"Date and Time needs to be filled"Error message if one field is missing.
dateformatErrorMessageString"Wrong Dateformat"Error message if dateformat is wrong (*Text-Mode)
localeString"en"Locale-Format of Date. One of "en", "de" or "es" (*Text-Mode)

*Text-Mode: If the Browser doesn't support Date/Time Inputs the Input falls back into Text-Mode with a masked input format.

Events

NameArgumentsDescription
inputvalue (String)The updated model
1.0.0

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago