Range mode of Flatpickr with limits (min and max) for choosing dates
See original GitHub issueHello! Thanks for your work.
It would be nice to be able to set for mode: "range"
, which would create the minimum and/or maximum length of the date range choice.
That is, with such options…
{
...
minRange: 3,
maxRange: 10,
...
}
…it would not be possible to select a date range that would be less than the specified minimum number of (3 days), but not more than the maximum number (10 days).
This would solve many problems. Both mine and many people!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Options - Flatpickr
Config Option Type Default
altFormat String "F j, Y"
altInput Boolean false
altInputClass String ""
Read more >Flatpickr - Limit the amount of dates that can be selected
This date picker allows for multiple dates to be selected but after reading the docs I can't find any way to limit the...
Read more >flatpickr - lightweight datetimepicker & calendar - UNPKG
Basic · Make it a datetime picker · Display a human-readable date · Limit the range of available dates with minDate and maxDate...
Read more >Selecting a Range of Dates - Integrating Flatpickr.js
You can have the user select a range of dates by passing in the property of mode: "range". Name. Email Address. Date.
Read more >Range mode of Flatpickr with limits (min and max) for ...
It would be nice to be able to set for mode: "range" , which would create the minimum and/or maximum length of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Convert Timestamp `$(function () {
}); `
Are there any updates on this, would be great to have a
minRange
/maxRange
option either as a plugin or as part of the core!