0.1.1 • Published 6 years ago

vue-pikaday-component v0.1.1

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

vue-pikaday-component

Software License Build Status Code Coverage

A lightweight Vue.js component wrapping dbushell/Pikaday.

Install

Install the library via NPM

npm install vue-pikaday-component

Usage

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>

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ npm run test

Security

If you discover any security related issues, please email kontakt@season.dk instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.