datepicker icon indicating copy to clipboard operation
datepicker copied to clipboard

✨ Ranged and preset events

Open Pebor opened this issue 1 year ago • 2 comments

I use this library on site that works with a lot of data, I let users control in what range they want to see said data displayed, but currently, from what I at least gathered, there is no way to get an event at a ranged selection or a preset click, so there is no comfortable time to update the data on the site.

Currently I can only change my data according to the dates whenever either endDate and startDate change, so it gets called twice when picking a range.

The data update is performance hitting, so it would be much better instead of chaining it with reactivity, just having an event "onRangePicked" or just simply "onApply" would be greatly appreciated.

Pebor avatar Jun 29 '24 20:06 Pebor

Thank you for submitting an issue. I'll include an on onRangeChange. I'm currently out for another month (had a baby), but will look at this when I'm back.

dysfunc avatar Jul 31 '24 15:07 dysfunc

Thanks and huge congrats! :smile:

Pebor avatar Aug 16 '24 22:08 Pebor

There's now an onDateChange event you can use for detecting date changes

dysfunc avatar Jan 19 '25 16:01 dysfunc