Code: Select all
windowResize : function(view) {
if ($(window).width() < 500) {
$('#calendar').fullCalendar('changeView', 'basicDay');
} else {
$('#calendar').fullCalendar('changeView', 'month');
}
// modify the header (remove options for month and week and remove title)
}
Header wird wie folgt festgelegt:
Code: Select all
$('#calendar').fullCalendar({
header : {
left : 'prev,next today',
center : 'title',
right : 'month,basicWeek,basicDay'
}
});