Calendar

Overview

The Calendar component provides three viewing options: Monthly, Weekly, and Daily. This flexibility allows users to navigate and manage their schedules according to their preferences.

By default, the Calendar highlights today’s date, making it easy for users to focus on the current day’s activities. This feature helps ensure that important dates and tasks are not overlooked.

Additionally, users can save records directly within the Calendar component. This functionality enables seamless tracking and management of events, tasks, or appointments across different time frames. By consolidating important dates and activities in one location, the Calendar helps users stay organized and efficiently manage their schedules.

Notes:

  • Click the Calendar icon to view the date, month, and year in calendar format. Use the Month drop-down menu to select between Month, Week, and Day views.

  • You need to create workflows for the New and Refresh buttons of the Calendar component. A workflow is a container that automates specific actions based on defined criteria. If the criteria are met, the actions will be executed otherwise, no action will occur.

  • You can create a new record by using New Action and for the record creation, click on the New button.

Reference: Workflow

image-20240816-102838.png
Calendar

Attributes

Attributes are the options available for each component, allowing you to customize its appearance and functionality. They help you tailor the look and behavior of your components to fit your needs.

Basic:

image-20240925-141343.png
Basic

Attribute Name

Description

Attribute Name

Description

Component Size

  • This allows users to modify the size of a specific component according to the grid size of layout.

For example,
If the layout grid size is 3 then layout is divided into 3 sections then you can changes the components size between 1 to 3.

Model

  • Models are essential for displaying content (fields) in the layout, and they are primarily used for creating or editing records.

  • When performing any action related to events, you need to include a model to ensure proper functionality.

  • Detailed guidance on creating and configuring these models can be found in the Models section, which provides the necessary support for setting up and using models appropriately.

Base UI:

Attribute Name

Description

Attribute Name

Description

Margin Location

"Margin Location" refers to the spacing around the outside edge of an element

Margin Size

"Margin Size" refers to the amount of space around the outside edges of an element,

Style

  • It is used to apply custom styles to section, such as color, font, size, and more.

  • It allows you to define the appearance of a component by specifying CSS properties directly within the attribute.

Classes

  • It is used to apply SLDS classes to section, if needed.

UI state:

Attribute Name

Description

Visibility Type

It determines whether a component is visible on the layout. It offers the following visibility types:

  1. Always: The component will always be visible.

  2. Conditional: The component's visibility is determined based on specific criteria, which can make it either visible or hidden as needed.

Calendar Model Setup:

Calendar Model Attributes

Description

Calendar Model Attributes

Description

Model

Here, you can choose an existing record or create a new model to create a new model, refer the below link

Date Field

The date field represents the date selected from the calendar.

Label Field

The label field represents the text label that is specified or selected for display.

Class

Here, users can enter the name of the class.

 

 

Events:

  • Events are essentially the automation of invoking the component's actions.

  • Here, we have onload event, new event, select event actions are available for this components.

Calendar Events

Description

Calendar Events

Description

onload

This event action is triggered when the component is loaded.

new

This event action is triggered when the new record is created.

Select

This event action is triggered when the calendar date is selected.

Below here is the onload event workflow action.

on Load Event: