g1eb / angular-datetime-range

📅 Angular directive for datetime range input
https://rawgit.com/g1eb/angular-datetime-range/master/
MIT License
25 stars 14 forks source link

No easy way to change year #15

Open FaustianDeal opened 6 years ago

FaustianDeal commented 6 years ago

If at all possible, can you add the ability to type the year with the keyboard to the popover? As it is now, the only way to select the year is to click the arrows or scroll with the wheel.

g1eb commented 6 years ago

Hi! If I remember correctly we wanted to have free text input support from the start but that was complicated by the inconsistent styling in different browsers and complicated logic.

Ideally you would want to be able to click on the time display and have it turn into an input, enter the date and save. Of course you would still need to validate the dates to check they don't overlap. The next request would be to make date editable :)

I'm afraid it is not that easy of a feature to add over weekend, I would need more time to look into this. Feel free to fork the project and try it yourself though, I'd love to assist if you need any help :)