How to add button header in Fullcalendar

Defines custom buttons that can be used in the header. Specify a hash of custom buttons. Then reference them from the header setting. You may also like How to integrate jQuery Fullcalendar using Codeigniter and MySQL and Change Event using Fullcalendar.

Code

$('.calendar').fullCalendar({
    displayEventTime: false,
    header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay'
    },
    buttonText: {
        prev: "",
        next: "",
        today: 'Today',
        month: 'Month',
        week: 'Week',
        day: 'Day'
    },
});

Leave a Reply

Your email address will not be published. Required fields are marked *