Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fullcalendar do something when view change

I need to do something when view change. For example when from motnh go to agendaDay.

Didnt work anythink.any ideas?

viewRender:(function() {

                var lastViewName;
                return function(view) {

                    var view = $('#calendar').fullCalendar('getView');
                    alert('The new title of the view is ' + view.title);
                }
            }),

and

viewRender:(function(view) {
                var view = $('#calendar').fullCalendar('getView');
                alert('The new title of the view is ' + view.title);
            }),
like image 751
dpapatsarouchas Avatar asked Mar 23 '26 09:03

dpapatsarouchas


1 Answers

In FullCalendar 5 this seems to be datesSet: https://fullcalendar.io/docs/datesSet

like image 190
Willow Avatar answered Mar 26 '26 09:03

Willow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!