1.0.2 • Published 4 years ago

light-vue-timepicker v1.0.2

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

light-vue-timepicker

Simple timepicker for VUE.JS made with Bootstrap

Dependencies

Installing

Install with npm:

npm i light-vue-timepicker

Import globally in app.js:

import LightVueTimepicker from 'light-vue-timepicker';
Vue.component('light-vue-timepicker', LightVueTimepicker);

Usage

<light-vue-timepicker></light-vue-timepicker>

Retrieve data

variable = {
	yourVmodel.hour,
	yourVmodel.minute,
	yourVmodel.second,
	yourVmodel.a
}

Props

Name                                       TypeDescriptionDefault
hourRangeArrayRange of hours which displayed (ex '8-12', '14-19', '22')'00-23'
minuteRangeArrayRange of minutes which displayed (ex '0-30')'00-59'
secondRangeArrayRange of secondes which displayed (ex '0-30')'00-59'
classeStringclass(boostrap or other) for input hour and minuteform-control col-5
formatStringFormat 12 or 2424
langStringlang fr or ennull (display HH MM)
withHourBooleanDisplay input hourtrue
withMinuteBooleanDisplay input minutetrue
withSecondBooleanDisplay input secondfalse

Example

<light-vue-timepicker
v-model="time"
lang="en"
:hourRange="['8-12', '14-19', '21']"
:minuteRange="['30', '40', '55-57']"
:withSecond="true"
>
</light-vue-timepicker>