简体   繁体   English

fullcalendar.js如何在周视图中提前+4天显示当天,在周视图中显示-2天

[英]fullcalendar.js how to display a current day +4 days in advance and -2 days behind in week view

Just read the documentation about the full calendar, but still can't find how to show a calendar that shows only a week with two days behind the current day and four days after the current day. 只需阅读有关完整日历的文档,但仍无法找到如何显示仅显示当前日期后两天和当天后四天的一周的日历。

So the current day in a week view would always be the third day. 因此,一周视图中的当前日期将始终是第三天。

If there is out of the box solution, please feel free to share it. 如果有开箱即用的解决方案,请随时分享。 Otherwise I am looking to develop the plugin. 否则我正在寻找开发插件。

Any help appreciated 任何帮助赞赏

Well, you simply have to change the firstDay to your current date minus two days and do that everyday. 好吧,你只需要将firstDay更改为当前日期减去两天,并且每天都这样做。

here is the doc for that property. 这是该属性的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM