This article explains how to add a Lightning calendar to a record page.
To add a VisualForce calendar to a record page, see: https://gomeddo.atlassian.net/wiki/spaces/BPD/pages/558891009.
For more information about Lightning versus VisualForce calendars, see: GoMeddo Lightning Calendar.
Go to a record for which you want to add a calendar. In the top right of your screen, click the gear icon and then Edit Page.
You can also get there through Setup > Object Manager > (your object) > Lightning Record Pages.
From the ‘Custom - Managed’ section in the left panel, drag and drop a calendar component onto the page. This article covers the Single Calendar, the Multi Calendar and the Mobile Calendar components. For the Schedule components, see: Scheduler.
In the right panel, select a calendar to display. This is the calendar record that will drive configuration for the component. For more information, see: Set up Calendars & Views.
Feel free to add more components to the page. You can even add multiple calendar components to one page! Just make sure the calendars have enough space to display nicely. When you’re done composing, save and activate the page.
The Single Calendar component will show a calendar just for one record. On the top horizontal axis it will show the days as column headers, and on the left vertical axis it will show the time slots as row headers.
When configuring the Single Calendar component, it’s possible that you won’t see any options in the Calendar dropdown. First make sure that a calendar record exists that is of the Single Calendar record type, and that the calendar’s dimension is the same object as which you are adding the component to.
The Multi Calendar component will show a calendar for multiple records. On the top horizontal axis it will show all the time information as column headers, and on the left vertical axis it will show all the records as row headers.
On the left vertical axis, the Multi Calendar component will show the children of the record that the component is displayed on. Our example above is a building with a couple of rooms in it. When configuring the component, simply select which related list contains the children:
To make the Multi Calendar component a little smarter, if it detects that the lookup of the children to the parent is self-referential, it will display the entire hierarchy from the parent on down. In our example building above, if we would go to its parent (which is a city with multiple buildings), we could see the following:
A self-referential lookup is when an object has a lookup to itself. An example is the Parent lookup on Resource, which points to another Resource. This lookup allows Resources to represent tree-like hierarchies.
The Mobile Calendar component will show a calendar for an individual record.
A single day view is used in this component. You select a Single Calendar that will be displayed with an optimised view for mobile. Usually the component is hidden on Devices with larger screens as can be seen in the following screenshot which uses form factors to make sure the component is only displayed on phone and tablet.
The Mobile calendar differs in its functionality compared to the multi or single calendar:
The user cannot use filters in the Mobile Component
The user cannot switch between views (day view is the only view currently available)
Hovers are shown when clicking the icon on the reservation
You can change the length of the reservation by using the ⬇ icon on the reservation