简体   繁体   English

FullCalendar:没有 header 用于 ValidRange 之外的 timeGridWeek

[英]FullCalendar : No header for timeGridWeek outside ValidRange

I'm using fullcalendar 5.5.0 with Angular 10.我正在使用 fullcalendar 5.5.0 和 Angular 10。

Something kind of annoying appears during the migration (fullcalendar v4 -> v5), there is no longer a header for the date before the start of the validRange:迁移过程中出现了一些烦人的事情(fullcalendar v4 -> v5),validRange 开始之前的日期不再有 header: 例子

With the parameters:使用参数:

    initialView: "timeGridWeek",
    validRange: {
      start: "2021-01-22",
      end: "2022-01-01"
    },

Adding a visibleRange doesn't change anything.添加visibleRange不会改变任何内容。

Well, it will save my day if someone know if it's a known bug, (or a feature), and how to fix this without adding custom code and .revert() to any action on event (move, resize, ...).好吧,如果有人知道它是否是已知的错误(或功能),以及如何在不添加自定义代码和.revert()对事件的任何操作(移动、调整大小等)的情况下解决此问题,这将节省我的时间.

Thanks !谢谢 !

PS : you can easily try it here: https://codesandbox.io/s/kind-hertz-x4etl?file=/src/app/app.component.ts PS :您可以在这里轻松尝试: https://codesandbox.io/s/kind-hertz-x4etl?file=/src/app/app.component.ts

you can add firstDay:{getDay(new Date())} it get the day number and start the calendar from that date您可以添加firstDay:{getDay(new Date())}它获取日期编号并从该日期开始日历

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

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