PickMeUp icon indicating copy to clipboard operation
PickMeUp copied to clipboard

Highlight dates in between range on mouse over

Open multiwebinc opened this issue 7 years ago • 3 comments

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.

multiwebinc avatar Nov 26 '18 07:11 multiwebinc

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.

nazar-pc avatar Nov 26 '18 18:11 nazar-pc

@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.

multiwebinc avatar Nov 26 '18 18:11 multiwebinc

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.

nazar-pc avatar Nov 26 '18 18:11 nazar-pc