Render default contents in FullCalendar content injection functions

Changed in v6, as per https://fullcalendar.io/docs/upgrading-from-v5#content-injection
This commit is contained in:
Adam Goldsmith 2023-09-26 15:36:29 -04:00
parent 78683fee49
commit 1c096df395

View File

@ -40,6 +40,7 @@ const calendarOptions: CalendarOptions = {
h('a', { href: ical_link }, ' [iCal 📅]') h('a', { href: ical_link }, ' [iCal 📅]')
); );
} }
return true;
}, },
eventContent: (arg: EventContentArg, h: typeof createElement) => { eventContent: (arg: EventContentArg, h: typeof createElement) => {
if (arg.view.type != 'resourceTimeline') { if (arg.view.type != 'resourceTimeline') {
@ -66,6 +67,7 @@ const calendarOptions: CalendarOptions = {
) )
); );
} }
return true;
}, },
}; };