longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

How to reinitialise on resize? #320

Open Varin6 opened 7 years ago

Varin6 commented 7 years ago

I need to display 2 months view when window is larger than 768px and one month view when window is smaller than that. Is there a way of destroying and then reinitialising .dateRangePicker so it changes dynamically when the window is resized?

FelipeDeCastro commented 7 years ago

Me too. Have you visualized any solution @Varin6 ? I tried to use .destroy(), but the browser doesn't recognize it.

chalda-pnuzig commented 6 years ago

Me too. Any workaround?