Newer Version Available

This content describes an older version of this product. View Latest

CalendarService Example

Here’s a basic example of a Lightning web component that displays calendar events and allows the user to perform basic calendar-related functions.

The component’s HTML template is minimal, with a “main” display view that lists calendar events and a “detail” display view that shows an event’s details.

This example simply uses CalendarService to display events, and allows you to perform simple actions on calendar items. A status message is returned when there’s an error. In this example, the events are hard-coded, rather than fetched via API calls from a Salesforce org. You’ll need to build functionality to fetch event data from your Salesforce org as part of your component.