Answers for "call a function from within custom button fullcalendar vue"

0

call a function from within custom button fullcalendar vue

data: function() {
    return {    
        calendarOptions: {
            headerToolbar: {
                right: "today prev,next",
                center: "title",
                left: "dayGridMonth,timeGridWeek,timeGridDay",
            },
            customButtons: {
                next: {
                    click: this.nextButton,
                },
                prev: {
                    click: this.prevButton,
                },
            },
        },
    };
},
methods: {
    nextButton: function(event) {
        console.log(event);
        // calendar.next();
    },

    prevButton: function(event) {
        console.log(event);
        // calendar.prev();
    },
}
Posted by: Guest on October-23-2020

Code answers related to "call a function from within custom button fullcalendar vue"

Code answers related to "Javascript"

Browse Popular Code Answers by Language