-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added monthSelect plugin. #745
Conversation
It works similarly to the weekSelect plugin.
I agree. I'm not extremely familiar with the code. If you could point me in the direction of overriding the calendar render, I'd be happy to complete the plugin. I have a pretty good idea of how to make the container for the months and everything, just no clue how to change the popup itself. |
Pull from Head
@skatt just create some div and append it to First, I'd add some class to Then, you could hide the month name and weekdays by .flatpickr-calendar.monthSelect
span.cur-month, div.flatpickr-weekdays
display none Second: hiding days - hook into Third: prevent arrows from changing months and change years instead fp.prevMonthNav.removeEventListener("click", fp.prevMonthFn);
fp.nextMonthNav.removeEventListener("click", fp.nextMonthFn); Then add your own listeners and just increase/decrease The rest should be just a matter of styling. |
Merge this please! |
Hello, Thank you for your work on the plugin. |
Looks great, will this support month range selection? |
sorry if this sounds stupid but how can I use this? |
@eliteproxy7, this is an unmerged pull request, so it's not in the released version yet. |
I downloaded from this pull I placed the monthSelect folder in my plugins directory. I also incldued the monthSelect.js & monthSelect.css in my Gulp script. here is my code
i get this error |
I got it running.. sort of flatpickr(".date-picker-my", { but its showing the dateRange functionality and I do not have the daterange included anywhere |
Does anyone know if this will be merged soon? |
I would also like to know if this will be merged.. hopefully soon. |
How is the progress on adding this to master? |
Hi, |
It works similarly to the weekSelect plugin.