Skip to content
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 'showTwoMonth' parameter #2346

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Eventpicker
Copy link

i had a problem specifically on mobile applications. the date picker with 2 months displayed went over the whole screen and was difficult to use. so i introduced a new parameter that only works with datepicker. 'showTwoMonth' is a boolean and is true by default. you can set it to false and only 1 month will be displayed.

if timepicker is activated this parameter has no effect

enable/disable if one or two month are displayed at custom daterangepicker
'showTwoMonth' should only be allowed for datePicker
@mikeluyties
Copy link

This is a great addition. I also have this issue on mobile and want to limit it to a single calendar, but still with the date range functionality.

hides all predefined ranges when the user selects custom range button
default: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants