Skip to main content

CnCalendarWidget

Calendar widget (agenda/upcoming) over internal calendars + external ICS feeds; data via cnCalendarSource.

Part of the dashboard widget library (v2). Registered with the dashboard widget registry and consumed by LaunchPad's widget grid. See the widget library overview and docs/architecture/cards-and-widgets.md.

Reference​

Props​

NameTypeRequiredDefaultDescription
contentobject\{\}Persisted widget content {viewMode, daysAhead, colorByCalendar}.
dataSourceunionnullConsumer-supplied data source overriding the cnCalendarSource injection. Must expose fetchEvents({from, to}) => Promise<{events, failures}>. When null the injection (then the empty state) is used.

Without its own chrome​

content.showTitle: false drops the "Calendar" sub-heading and content.showViewModes: false the Month / Week / Agenda buttons; with both the header row goes, for an agenda placement whose card already names it. A dashboard placement or widget definition with showButtons: false drops the footer links (its buttons, such as "More events").