daterangepicker icon indicating copy to clipboard operation
daterangepicker copied to clipboard

Feature/single calendar

Open jeroen-groenveld opened this issue 6 years ago • 5 comments

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.

jeroen-groenveld avatar Dec 05 '18 12:12 jeroen-groenveld

Cool! I hope this gets pulled in :)

morganhvidt avatar May 01 '19 08:05 morganhvidt

+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) {

phpMagpie avatar Jun 21 '19 13:06 phpMagpie

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..

luckyexpert avatar Aug 06 '19 19:08 luckyexpert

I was looking for this feature. I've not tested yet but I hope this feature gets added to master.

asacarter avatar Nov 25 '20 17:11 asacarter

I also need this feature. Sometimes having 2 calendars is an overkill

koljada avatar Mar 17 '22 10:03 koljada