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.
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