简体   繁体   中英

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.

here is the doc for that property.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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