Skip to content

Commit

Permalink
Merge pull request #1 from Minnowo/calendar_5_days
Browse files Browse the repository at this point in the history
Add 5 day view in Calendar, traggo#168
  • Loading branch information
Minnowo authored Sep 21, 2024
2 parents 95eea7a + 0b42af2 commit f281c5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/src/timespan/calendar/CalendarPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ export const CalendarPage: React.FC = () => {
timeSpansResult.refetch(range);
}
}}
views = {{
timeGrid5Day: {
type: 'timeGrid',
duration: { days: 5 },
buttonText: '5 day'
}
}}
editable={true}
events={values}
allDaySlot={false}
Expand Down Expand Up @@ -263,7 +270,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 f281c5c

Please sign in to comment.