CalendarPicker
CalendarPicker copied to clipboard
Multiple selection of event dates
How can i add multiple selected dates in calendar. I have to add multiple events in single month right now i am able to add only single start and end date.
There would probably need to be a new prop such as multiDateSelection
to enable this new mode. New logic would toggle selected dates in an array and fire a callback prop such as onMultiDateSelected
. The day highlighting would also need to be wired up to the multi-dates array.
PRs are welcome :)
This would be a nice feature, also to limit the number of date would be good, very often you might want to select only 2 dates, without it being a range, or maybe 3 or 4.. the prop should maybe be a number to define the maximum number of dates. Also you will need to be able to toggle selected dates off when you hit the max, or perhaps automatically de-select the first selected date or something of that sort.
@peacechen Hi! How can I select multiple dates that are out of range? Is there such an opportunity? For example I want to select only 1st October and 1st November dates
@mparkhomenko
Please open a new issue for a different topic. See the disabledDates
prop:
https://github.com/stephy/CalendarPicker#calendarpicker-props
There would probably need to be a new prop such as
multiDateSelection
to enable this new mode. New logic would toggle selected dates in an array and fire a callback prop such asonMultiDateSelected
. The day highlighting would also need to be wired up to the multi-dates array.PRs are welcome :)
This would be great.
any update?