v0.2.0
π News
- You can set default lang in options
Vue.use(VueDatePicker, { lang: 'fr' });
- you can use a custom activator for datepicker
<VueDatePicker
v-model="currentDate"
>
<template #activator="{ date }">
<button
class="custom__button"
ref="activator"
type="button"
>
{{ date }}
</button>
</template>
</VueDatePicker>
- new prop
visibleYearsNumber
: Allows to set years range in year picker (it will add X years before & after current year) - new prop
origin
: By default, datepicker will find best origin, but you can set your own transform origin like 'top right'.
π₯ Breaking changes
- Renamed prop
attach-to
toattach
. Can be used like this :<VueDatePicker attach />
When attach is active, it will keep menu in place. Usefull, when using VueDatePicker inside a fixed div with scroll - Removed prop
fixed
: datepicker will now detect automaticaly fixed mode
π Fixes
- Handle null dates
- Fixed console error
Cannot read property 'start' of undefined
This closes #14, closes #19 and closes #22
π Docs
- Doc has been redesigned to be easier to maintain