Max view option #630
leoap
announced in
Announcements
Replies: 1 comment
-
Hello! Thank you for your feedback! let dp = new Datepicker('myElement', {
onChangeView(view) {
if (view === 'years') {
dp.setCurrentView('months');
}
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I've started to use Air Datepicker and it is great, thank you for the efforts of maintaining it.
I was wondering if there is any way to limit the user to view just the 'months' and 'days', so he would not be able choose 'years'.
I understand that creating a Date object requires a year, but in that case, the year may be the current year.
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions