Releases: MikaelEdebro/vue-airbnb-style-datepicker
Customized date classes
Merged PR allowing to specify custom classes on specified dates:
#91
Vue 2.6 fixes
Vuetify fixes & closeAfterSelect
In this release, I addressed some issues that this component had running together with Vuetify. Hopefully these issues should be resolved now.
Also a new prop closeAfterSelect
, to allow you to close the datepicker after all dates have been selected.
Year/month dropdown
SSR support & enabled-dates prop
- Fix for making plugin work in Server-Side Rendered projects.
- New prop for enabled dates. Disable all dates except the ones specified in
:enabled-dates="['2018-10-12', '2018-10-21']"
Accessibility support *breaking changes*
Note, there are a breaking change for people using a previous version of this plugin.
Path to CSS file has changed. See docs for new path:
https://mikaeledebro.gitbooks.io/vue-airbnb-style-datepicker/INSTALLATION.html
Accessibility support
This plugin now have better screen reader support. Thanks @coleww for the great contribution.
Travis CI integration & minor fix
Implemented Travis CI.
Also fix to allow setting dates to undefined, without it setting date to today.
Minor improvements
Issue 38 - Fix issue where datepicker did not update what months to show properly if minDate changed dynamically.
Issue 25 - Set classes on selected date (.asd__selected-date-one
& .asd__selected-date-two
)
Issue 37 - Fix mobile header fallback text. "Select date" for single mode, "Select dates" for range mode.
Emit event when changing months
New events added when changing months.
@previous-month="showVisibleMonths"
@next-month="showVisibleMonths"
methods: {
showVisibleMonths(visibleMonths) {
console.log(visibleMonths) // ['2019-01-01', '2019-02-01']
}
}
Trigger from variable
Now you can also trigger the datepicker by passing a boolean to :trigger="someBooleanData"
. See docs for more info.