Skip to content

Commit 0202c1e

Browse files
authored
Calendar 5 days option (#182)
1 parent 5e42c9b commit 0202c1e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ui/src/timespan/calendar/CalendarPage.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,14 @@ export const CalendarPage: React.FC = () => {
226226
timeSpansResult.refetch(range);
227227
}
228228
}}
229+
views={{
230+
timeGrid5Day: {
231+
type: 'timeGrid',
232+
duration: {days: 7},
233+
buttonText: '5 day',
234+
hiddenDays: [0, 6],
235+
},
236+
}}
229237
editable={true}
230238
events={values}
231239
allDaySlot={false}
@@ -263,7 +271,7 @@ export const CalendarPage: React.FC = () => {
263271
header={{
264272
center: 'title',
265273
left: 'prev,next today',
266-
right: 'timeGridWeek,timeGridDay',
274+
right: 'timeGridWeek,timeGrid5Day,timeGridDay',
267275
}}
268276
/>
269277
</FullCalendarStyling>

0 commit comments

Comments
 (0)