How would you have implemented range for the component DatePicker?

0 like 0 dislike
Make your custom DatePicker, there is a need to make range of dates that I could choose several to give on one calendar. How would you implement this? I've got this idea:
Create a range array that stores two values: the startDate and endDate and an integer property step.
When I selected the first date - step incrementorum per unit, initializes the startDate, the second you click step again incremented by one, and initializes the value of the endDate. This is the normal approach or something else?
How to store intermediate date between startDate and endDate?(to customize)
by | 4 views

1 Answer

0 like 0 dislike

Related questions

110,608 questions
257,186 answers
33,962 users