williamtroup/Calendar.js

Help: example how to call a function after event is added

omarruben opened this issue · 1 comments

can you please post a small example how to call a function after event is added?
I want to call a ajax function to save the current month changes on a PHP server after I created a event on the GUI , thank you

If you take a look at https://williamtroup.github.io/Calendar.js/options.html, if you scroll to the bottom, you will see a list of event that's you can attach when setting the options up.

One of these is called onEventAdded, the other is onEventsAdded. These events will be triggered and will pass the event, or events through to them for you to access.

Hope this helps.