如何在react fullcalendar中设置自己的周末



如何在react Full Calendar中设置自己的周末。我想把周末设置为周六,但默认情况下是周日和周六。如何自定义?

return (
<div className="App">
<FullCalendar
plugins={[dayGridPlugin, listPlugin, interactionPlugin]}
initialView="dayGridMonth"
// events={event}
events={event}
daysOfWeek={(0, 1)}
DayGrid={true}
TimeGrid={true}
selectMirror={true}
dayMaxEvents={true}
headerToolbar={{
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,dayGridWeek,dayGridDay,listWeek',
}}
dayClick={(e) => handleDateClick}
eventAdd={handleDateClick}
editable={true}
droppable={true}
/>

我想这就是你想要的道具:https://fullcalendar.io/docs/hiddenDays

return (
<div className="App">
<FullCalendar
plugins={[dayGridPlugin, listPlugin, interactionPlugin]}
initialView="dayGridMonth"
// events={event}
hiddenDays={[6]}
events={event}
daysOfWeek={(0, 1)}
DayGrid={true}
TimeGrid={true}
selectMirror={true}
dayMaxEvents={true}
daysHidden={[6]}
headerToolbar={{
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,dayGridWeek,dayGridDay,listWeek',
}}
dayClick={(e) => handleDateClick}
eventAdd={handleDateClick}
editable={true}
droppable={true}
/>

相关内容

  • 没有找到相关文章

最新更新