[英]FullCalendar display within date range
我试图显示具有特定日期范围的FullCalendar 。 为此,我在代码中添加了以下visibleRange
选项,但它无效。 日历根本不显示。
this.$calendar.fullCalendar({ //other settings defaultView: 'basic', visibleRange: { start: moment('2017-05-22'), end: moment('2017-05-29') }, duration: { days: 7 }, //other settings });
知道我怎么能做到这一点?
谢谢
使用momentjs 2.18.1,jquery 3.2.1,fullcalendar 3.4.0,这显示了从5月22日到5月28日的视图:
$('#calendar').fullCalendar({
defaultView: 'basic',
visibleRange: {
start: moment('2017-05-22'),
end: moment('2017-05-29')
} // Don't use duration in combination with visibleRange? Appears to override
/*,
duration: {
days: 7
}*/
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.