如何创建从上午 9 点到第二天上午 9 点的时间段

问题描述 投票:0回答:1

我正在使用 fullCalendar。现在我只有一天的时间段可用,例如 0 到 24 小时。

相反,如果可能的话,我想要一个 24 小时的自定义时间段,例如今天上午 9 点到第二天上午 9 点。

javascript fullcalendar fullcalendar-scheduler fullcalendar-6
1个回答
0
投票

假设您使用的是资源时间轴视图,您可以这样做,例如:

initialView: "resourceTimelineWeek",
slotDuration: { hours: 24 },
slotMinTime: "09:00",

现场演示:https://codepen.io/ADyson82/pen/yLGJvwa

© www.soinside.com 2019 - 2024. All rights reserved.