Skip to content

Commit

Permalink
Calendar 5 days option (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minnowo authored Sep 22, 2024
1 parent 5e42c9b commit 0202c1e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ui/src/timespan/calendar/CalendarPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ export const CalendarPage: React.FC = () => {
timeSpansResult.refetch(range);
}
}}
views={{
timeGrid5Day: {
type: 'timeGrid',
duration: {days: 7},
buttonText: '5 day',
hiddenDays: [0, 6],
},
}}
editable={true}
events={values}
allDaySlot={false}
Expand Down Expand Up @@ -263,7 +271,7 @@ export const CalendarPage: React.FC = () => {
header={{
center: 'title',
left: 'prev,next today',
right: 'timeGridWeek,timeGridDay',
right: 'timeGridWeek,timeGrid5Day,timeGridDay',
}}
/>
</FullCalendarStyling>
Expand Down

0 comments on commit 0202c1e

Please sign in to comment.