6eDesign / svelte-calendar

A lightweight datepicker with neat animations and a unique UX.
https://6edesign.github.io/svelte-calendar/
MIT License
537 stars 89 forks source link

feature request: expose month selected callback #109

Closed klase closed 3 years ago

klase commented 3 years ago

Would be useful to expose when the user selects a new date so we can asynchronously do things depending on the current month the user is viewing.

6eDesign commented 3 years ago

I think this is quite doable in v2.x and the new v3.x without explicitly declaring a callback or event handler. You should be able to wire this up with reactive variables and the existing props (or store in v3).