daterangepicker
daterangepicker copied to clipboard
Feature/single calendar
With the singleDatePicker option you can only select 1 date (hence the name) and not a range between two dates. With the singleCalendar option only one calendar is shown, but you can still pick a range. This is useful for mobile, because when it shows the two calendars it's quite long.
This is the same pull request as #1873 instead of pulling from the master branch it's pulling from another branch.
Cool! I hope this gets pulled in :)
+1 I really like this, ideally would be able to have this on mobile and the 2 calendar view on larger screen sizes.
I had an issue with lines https://github.com/dangrossman/daterangepicker/blob/37f07d95482939b7352f1b03c37c3fd925f44210/daterangepicker.js#L389-L391 applying the "auto-apply" class so changed line 389 to:
if (this.singleDatePicker && !this.timePicker) {
Yes I need this.. I need this calendar to be more mobile friendly, and with this option I can check width of the screen to determine if I should show 1 calendar or 2. 2 calendars just doesn't fit on mobile nicely..
I was looking for this feature. I've not tested yet but I hope this feature gets added to master.
I also need this feature. Sometimes having 2 calendars is an overkill