-
-
Notifications
You must be signed in to change notification settings - Fork 134
setDates and setDateRanges for multiselect plugin #232
Comments
This seems similar to Issue #21, which led to the addition of setHighlightedDays() However I'm not sure how to use the setHighlightedDays() function to reproduce a second set of inputs that matches the screenshot provided by the op in that issue. I too am in need of that functionality. |
Are For now I've just manually did |
@piotrpalek ... manually setting that array does not update the calendar as far as I can see. is there something else i should be doing? |
@thehopwood sorry I don't have access to the code anymore to check, and don't remember it off hand :( |
I run into the same issue. I can't find a way to predefine or set multipleDates. Everything I tried, failed. Even setting multiple dates, e.g. I tried to set it via the
... does not work. I am grateful for any ideas! |
Hi, Suppose you have a string format to Date conversion function, eg (I use "DD/MM/YYYY" format) :
You can init the datepicker first :
Then initialize the associated tag value :
And initialize the preselected dates - use timestamps only :
That's it. |
I found a solution that works for me, too. I forked Litepicker for this reason and added a I also published it on npm: https://www.npmjs.com/package/@goaround/litepicker |
Is your feature request related to a problem? Please describe.
What I would like to achieve is a calendar with multiple dates or date ranges marked (selected or highlighted) that can be modified by the user.
Describe the solution you'd like
It would be useful to have a "setDates" method for multiselect plugin, which whould take an array of dates as an argument and "setDateRanges" for multiple date ranges too.
The text was updated successfully, but these errors were encountered: