Fullcalendar scheint durch die in der Ansicht angezeigt Dauer fort zurück, neben Tasten auf Standard. Es scheint nicht ein Weg, um es durch die Optionen Konfiguration/außer Kraft zu setzen, so könnte eine Abhilfe sein:
https://jsfiddle.net/a0j9v7gu/
$('#calendar').fullCalendar({
views: {
basicTwoWeeks: {
buttonText: '2 Weeks',
type: 'basic',
duration: {
weeks: 2
}
}
},
/* Fullcalendar doesn't appear to support advancing calendar with default prev,next buttons
a different interval than the duration displayed by the view. So, we make our own buttons! */
customButtons: {
mynext: {
text: 'Next',
click: function() {
var $cal = $('#calendar');
/* change to a lesser duration view (week, day).
if you don't the 'next' button won't work as expected.
comment out following line and see
*/
$cal.fullCalendar('changeView', 'basicWeek');
$cal.fullCalendar('incrementDate', moment.duration(1, 'week'));
/* pop back to two-week view */
$cal.fullCalendar('changeView', 'basicTwoWeeks');
},
},
myprev: {
text: 'Prev',
click: function() {
$('#calendar').fullCalendar('incrementDate', moment.duration(-1, 'week'));
}
}
},
header: {
left: '',
center: 'title',
right: 'myprev,mynext'
},
defaultView: 'basicTwoWeeks',
defaultDate: '2016-10-01'
});
nur raten, wie etwa Änderung der 'Wochen: 2' auf 'Wochen: 1? :) weil die Frage nicht sehr klar ist – elfan
Es sieht einfach 1 Woche:/ – user3414768