In this blog post we will discuss how we can implement the Lightning Calendar in Lightning Web Component using Full Calendar V3 Library.
Full Calendar library has many features that we can use to display the event information. To read more about this Visit https://fullcalendar.io/
- Show the Events in Monthly, Daily, and Weekly view
- Show the Event Details when clicked on Event Title
- Show the Created Record wizard when user clicks on any day area
Now, let’s say that a business wants to display the information about the events inside a particular record page, home page or app page and that has the ability to display the event information in a modal and can drag & drop the event.
Here is the Link which has to update the code.
So let’s start implementation.
Download the V3 Full calendar Js from https://fullcalendar.io/ and upload as static resource in Salesforce Environment.
Create a Lightning Web Component and use below code
Now, Create Apex Class and use below code. Apex Class is used to get the Event from the Salesforce Event object
You can find the full code here including static resource
Add your component inside any record page, home page or app page and see the demo
Output when clicked on event title
Output when clicked on any day
Thanks for reading 🙂
Sharing is caring 🙂 If you have any query please feel free to put down into the comment section.
#Salesforce #SFDCPanther #DeveloperGeeks