A calendar is a graph that shows the current date and the current day of the week. Frequently, the overall year is divided into months, weeks, and days.
Configurations of a calendar component
...
Model:
The connection between the field and the event is the model. when a user performs any action in an event, then a model needs to be bound. but in a calendar, only multirecord models are working. so users need to create a multi-record model.
Creating a multi-record model is shown below
Click on the "+" icon. The model will open
An create a model
...
Click the "+" icon to add this model to the layout configuration
...
When users select Run & Preview, the calendar layout will display
...
By selecting the "Calendar" icon, the user can choose a day, a month, and a year
...
By selecting the "Month" dropdown, the user can choose a month, week, and a day
There are different modes to display in the calendar
Month
Week
Day
...
New
The user has been required to create a workflow for a "New" action
...
Go to the layout config
In order to create a workflow, click the "+" icon
...
Drag and drop the push model, then enter the details
...
Click "Event" to add a workflow in the new action
...
Choose the workflow action from the drop-down menu
...
Add the workflow
...
Go to the preview page
To enter a record, select the "new" button
...
The layout will open and from this layout, a user can enter a record
...
The record will display in the calendar view
...
Refresh
The user can reload any previously saved information by using the refresh button
...
...
Overview
The Calendar component is used for viewing all the events in the calendar format
This component can display data in Calendar format, if the object bounded using the model to it has a date and date time field in it
The Calendar display data in 3 formats i.e. monthly, weekly, and daily
Refer model Models
Attributes
Models
Models are used to display content (fields) in the layout
Mainly used for the creating or editing of a record
A Model needs to be added when you perform any action in an event
For the Calendar component you need to create Multi Record Model, You can take help from Models for creating the models
...
To add the model to the Calendar, Refer to this link Models
Click the Run & Preview
...
Click the Calendar icon
To display the Date, Month, and Year in Calendar format
Click the Monthdropdown
You can select Month, Week, and Day
Workflows
Workflow is basically a container that automates specific actions based on particular criteria
If the criteria are met, the actions get executed. If they are not met, then no action will get executed
There are multiple actions in the Workflow Workflows
e.g. Push, Pop, Toaster, Show Spinner, etc
New
To create new record action you should create a workflow, refer to this link Workflows
Workflow should be added to the Events section, refer to this link Events
Click the Run & Preview
For the record creation, click on the New button
...
Fill in the information and Savethe record
...
Refresh
To reload any previously saved information, click on the Refreshbutton
...