I wonder if there's an alternative way to select a range of dates in month view, without click + drag?
My idea would be:
- 1st. click: Sets start date.
- On
mousemove
, date ranges highlight (up to the date the mouse pointer is over). - 2nd. click: Sets end date.
Should I do this triggering manually dragstart
on dayClick
callback? I cannot find a way on the docs to hook to events there. What I'm missing?
Somehow related but different behavior I want to add, is to "highlight" a range of dates (in the fiddle are 4 days), from the selected start date. I've tried calling the select
method via dayClick
callback, but if I invoke select
method programatically, only the start and end date highlights (and I would like to highlight also the ones inbetween).
(See Fiddle: https://jsfiddle.net/xeezawaki/qrjpv7w5/)