vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
964 stars 82 forks source link

Expose API for next and previous actions #279

Closed haovoanh28 closed 2 days ago

haovoanh28 commented 2 weeks ago

Hi,

In my web app, the calendar has four different view types. Due to certain requirements, I need to implement a custom toolbar instead of using the built-in one. When working on the next and previous actions, I realized that my solution is rather cumbersome, as I have to handle each action in 4 different ways, resulting in a total of 8 different approaches.

Is is possible to expose an API for next and previous actions, similar to FullCalendar, so that I can simply call it and have everything work as expected ?

Thank for your time.

vkurko commented 2 weeks ago

Ok, I'll implement this.

haovoanh28 commented 2 weeks ago

Thank you

vkurko commented 4 days ago

The next and prev methods should be available in v3.1.0. Please check.

haovoanh28 commented 2 days ago

I checked. It works well, thanks.