@harryy/vue-datepicker
v0.0.1
Published
Vue.js component for Flatpickr
Downloads
5
Maintainers
Readme
Vue Datepicker Component
Vue.js component for Flatpickr datepicker
Installation
# npm
npm install @harryy/vue-flatpickr --save
# Yarn
yarn add @harryy/vue-flatpickr
Usage
Minimal example
<template>
<div>
<datepicker v-model="date"></flat-pickr>
</div>
</template>
<script>
import datepicker from '@harryy/datepicker';
export default {
data () {
return {
date: null,
}
},
components: {
datepicker
}
}
</script>
Events
<datepicker v-model="date" @on-change="doSomethingOnChange" @on-close="doSomethingOnClose"></flat-pickr>