A lightweight Vue.js component wrapping dbushell/Pikaday.
Install the library via NPM
npm install vue-pikaday-component
Import the component into your Vue.js application
import DatePicker from 'vue-pikaday-component'
Use the component
new Vue({
components: {
DatePicker
},
data () {
return { date: null }
}
})
Create the date picker and bind the reactive date prop as v-model.
<date-picker v-model="date"></date-picker>
Custom options can be passed to the datepicker (v-model and format have dedicated props)
<date-picker v-model="date" format="YYYY-MM-DD"></date-picker>
All other options can be passed through the options prop.
<date-picker v-model="date" :options="{ firstDay: 1, disableWeekends: true }"></date-picker>
Please see CHANGELOG for more information on what has changed recently.
$ npm run test
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.