pikaday-vue
A Vue.js wrapper for Pikaday
A demo is available here: www.maxpou.fr/pikaday-vue/
Configuration
Props config:
minDate
: earliest date that can be selectedmaxDate
: latest date that can be selecteddefaultDate
: default date set (should be a Date object)setDefaultDate
: make thedefaultDate
the initial selected valuefirstDay
: first day of the week (0: Sunday, 1: Monday, etc) (default: 1)format
: the default output format (examples) (default: MMMM Do YYYY)numberOfMonths
: number of calendarscalendarIcon
: set the icon on the div (default: true)disableWeekends
disallow selection of Saturdays or Sundays (default: false)
Event:
onSelect(dateSelected)
: raise when date change
Contributing
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build-demo# build for production and view the bundle analyzer reportnpm run build-demo --report# run unit testsnpm run unit# run e2e testsnpm run e2e# run all testsnpm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader. For commits messages, please follow the gitmoji guideline