Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Highlight dates in between range on mouse over #208

Open
multiwebinc opened this issue Nov 26, 2018 · 3 comments
Open

Highlight dates in between range on mouse over #208

multiwebinc opened this issue Nov 26, 2018 · 3 comments

Comments

@multiwebinc
Copy link
Contributor

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
Copy link
Owner

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
Copy link
Contributor Author

@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
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants