I have successfully added a custom button to my JavaScript full calendar code, but I would like this button to be displayed only in the month view.
$(document).ready(function() {
var calendar = $('#calendar').fullCalendar({
editable: true,
//FOR HEADER
header: {
left: ' prev,next today ',
center: 'title',
right: 'month,agendaDay,agendaWeek,myCustomButton'
},
customButtons: {
myCustomButton: {
text: 'REPEAT FOR NEXT MONTH',
click: function() {
alert('my custom button');
}
}
}
});
});