我正在研究 jquery fullcalendar插件。我编写了代码,默认情况下显示整周 View ,但我想一次显示 3 天,并在 onclick 按钮显示接下来的几天后。我该怎么做?
enter code here
$('#calendar').fullCalendar({ 默认 View :'议程周',
});
最佳答案
这在 documentation 中有很好的解释。 .
你想要的可能是这样的:http://jsfiddle.net/z0au4L8x/1/
$('#calendar').fullCalendar({
header: {
center: 'agendaThreeDay' // buttons for switching between views
},
views: {
agendaThreeDay: {
type: 'agenda',
duration: { days: 3 },
buttonText: '3 day'
}
},
defaultView:'agendaThreeDay'
});
关于javascript - 想要在全日历插件的周 View 中一次显示 3 天,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28365380/