chemerisuk / better-dateinput-polyfill

input[type=date] polyfill
http://chemerisuk.github.io/better-dateinput-polyfill/
MIT License
259 stars 58 forks source link

How to upgrade your awesome dateinput polyfill to select a range of time instead of only one date ? #102

Closed badjilounes closed 5 years ago

badjilounes commented 7 years ago

Hi,

I've been using your dateinput polyfill for 6 months and I have a new feature to develop which deals with dates.This is the reason why I would like to modify you dateinput polyfill.

The feature I need to develop is about handling a range of time (just one begin and one end date), but I don't know where I should start.

Let's start with UX Design.

I would like to show only one calendar on which the user will select both begin and end date. Those two dates would be matched after being selected. Users are used to see the range selected highlighted selecting the end date.

The issue is that I don't know where i should start if you could just give me some guideline to understand your code and to improve it :)

Thank you for your time. Kind regards.

chemerisuk commented 5 years ago

@badjilounes I think this kind of behavior should be a different plugin. The main goal for this repository is to implement a polyfill for input[type=date] element. You need something different.