0.2.0 • Published 3 years ago

v-digital-time-picker v0.2.0

Weekly downloads
36
License
MIT
Repository
github
Last release
3 years ago

🚀 VDigitalTimePicker

Digital Time Picker for Vuetify.

Installation

Insall dependencies

npm install v-digital-time-picker

For yarn

yarn add v-digital-time-picker

Quick Start

Implement VDigitalTimePicker as plugin

import VDigitalTimePicker from 'v-digital-time-picker'

Vue.use(VDigitalTimePicker)

You can import as individual component

import { VDigitalTimePicker } from 'v-digital-time-picker'

Vue.component('v-digital-time-picker', VDigitalTimePicker)

Basic Usage

You can implement on Vue template.

<template>
  <v-app>
    <v-container style="max-width: 600px;">
      <v-digital-time-picker
        v-model="timeValue"
        rounded
        filled/>
    </v-container>
  </v-app>
</template>

<script>
export default {
  data () {
    return {
      timeValue: ''
    }
  }
}
</script>

You can use with vee-validate

<template>
  <v-app>
    <v-container>
      <validation-provider
        ref="timePicker"
        v-slot="{ errors }"
        rules="required">
        {{ errors }}
        <v-digital-time-picker
          v-model="timeValue"
          rounded
          filled/>
      </validation-provider>
    </v-container>
  </v-app>
</template>

VDigitalTimePicker extends from VTextField by transparent wrappers.

Props

NameTypeRequiredDescription
valuestringNoBinding value of as time format (e.g. '11:00')

Events

NameDescriptionParameters
valueTrigger when value is changedstring

Contrubutation

If you want to improve or add any feature, you can submit as pull request.

npm install

npm run serve

Run unit tests

npm run test:unit

Lints and fixes files

npm run lint
0.2.0

3 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.3

5 years ago

0.1.0

5 years ago