nazar-pc / PickMeUp

Really simple, powerful, customizable and lightweight standalone datepicker
BSD Zero Clause License
616 stars 191 forks source link

Highlight dates in between range on mouse over #208

Open multiwebinc opened 5 years ago

multiwebinc commented 5 years ago

When using a range, after the first date is selected, the values in between should be highlighted when mousing over the dates on the calendar. Similar to https://flatpickr.js.org/examples/#range-calendar.

nazar-pc commented 5 years ago

Interesting feature, but I'm not convinced this should be in library itself. You can add custom class to elements on hover and use CSS to style dates like that.

multiwebinc commented 5 years ago

@nazar-pc This can't be done with pure CSS. I'm thinking you misunderstood what I was talking about. I mean highlight the dates in between the two dates. Sort of like it is now after you select the second date, however doing that on mouse over before the second date is actually selected.

nazar-pc commented 5 years ago

No, I heard you right. You can add event handler for mouse movements and add classes accordingly yourself. Sure, not as simple as having it built-in, but still very straightforward to do.