0.0.1 • Published 6 years ago
@harryy/vue-datepicker v0.0.1
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>
0.0.1
6 years ago