You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to give the DatePicker widget a list of valid dates, such that within the minimum and maximum date range only the dates in the list are able to be selected. Ideally this would also grey out the invalid dates just like dates outside the range given are marked now (example below).
I'd imagine this involves the JavaScript/TypeScript side of things which I have no experience in, but if someone in the know thinks this is would be a smaller job and could point me in the right direction I'd be happy to take a crack at it.
The text was updated successfully, but these errors were encountered:
Looks like pikaday has a disableDayFn which requires passing a JS function to return true/false for every day in the view to specify if it is selectable:
#9509 fixes this and many other datepicker issues (as well as adds selenium tests) for 2.0 but note that the implementaton was switched to Flatpickr, and also now date values can only be expressed as ISO date strings, or datetime.date and nothing else (in particular no more datetime values which caused endless trouble with time zones)
It would be nice to be able to give the DatePicker widget a list of valid dates, such that within the minimum and maximum date range only the dates in the list are able to be selected. Ideally this would also grey out the invalid dates just like dates outside the range given are marked now (example below).
I'd imagine this involves the JavaScript/TypeScript side of things which I have no experience in, but if someone in the know thinks this is would be a smaller job and could point me in the right direction I'd be happy to take a crack at it.
The text was updated successfully, but these errors were encountered: