Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Component Description

This component displays a single Lightning calendar. It is only available for record pages. If you include this in a community, make sure it is on a record page.

General Properties

Whether the component is added to a community or not, the following properties are always available:

Property

Required

Description

Calendar

Yes

The component will take its configuration from the selected calendar record. Only calendars of record type Single Resource Calendar will be shown.

Max Height

Yes

The maximum height of the calendar in pixels.

Lookup to Dimension

No

A lookup on the record that points towards the dimension you want to display. More info below.

Filter identifier

No

Calendars with the same identifier share their filters. When empty, defaults to the name of the selected calendar.

Additional Community Properties

When added to a community, the following additional properties are available:

Property

Required

Description

Record ID

Yes

The id of the record the component is located on. Enter {!recordId} to automatically pass the id of the current record to the component.

Object Name

Yes

The object name of the current record. Enter {!objectApiName} to automatically pass the object name of the current record to the component.

Explanation of Lookup to Dimension

If Lookup to Dimension is empty, the calendar component will display for the current record. This means the current record will be the dimension, and will be used to get the opening times from and any related reservations. So for example if you place this component on a Staff record page, and you navigate to a specific Staff record, the component will show the available times for that Staff member, as well as any reservations for that Staff member.

If Lookup to Dimension is filled in, the calendar component will display for whichever record that lookup points to. So let’s say the Staff record from the example above has a lookup ‘Building’ which points to a resource, that record will be used to display the calendar. The available times and the displayed reservations will be of the related building instead of the Staff record whose page you are on.

In the above example with the related building, if that building contains multiple rooms that you want to display, you should use the Multi Calendar component instead of the Single Calendar.

On this page

  • No labels