Set default values for Custom Range Calendars #2254
-
Hello, I'm looking for a way to define default values for the calendars, which will open up when we click on the custom range. I know that, if we set 'startDate' and 'endDate' to some custom values, it will initially open the picker with "Custom Range" option selected and with those values set. But if we want to initially open the picker with some predefined range selected (ex: last month) and then later want to set a custom range, the calendars will open with those lastly selected values. Here I want to set default values for the custom range calendars. Whenever the user opens them (initially or later stage), the calendar range should be populated with those default values. Can we achieve this with daterangepicker? Any help would be highly appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
No