Compact Calendar
Display tasks, events or any object's records as activities on a compact calendar.
GridMate provides a lightning component GM - Compact calendar to display the Event, Task, or any Objects on the calendar as activities.
In this tutorial, we will configure the GM - Compact calendar component to display the Task and Event objects on the Calendar.
2
Properties
Property
Demo value
Notes
Below is the JSON Config configured for the demo
[
{
"objectApiName": "Task",
"dateField": "ActivityDate",
"iconName": "standard:task",
"backgroundColor": "",
"filter": "{\"WhatId\": {\"operator\" : \"=\", \"value\" : \"$recordId\"}}",
"titleField": "Subject",
"detailFields": [
"Description"
]
},
{
"objectApiName": "Event",
"dateField": "ActivityDate",
"fromDateField": "StartDateTime",
"toDateField": "EndDateTime",
"iconName": "standard:event",
"backgroundColor": "#94baf7",
"filter": "{\"WhatId\": {\"operator\" : \"=\", \"value\" : \"$recordId\"}}",
"titleField": "Subject",
"detailFields": [
"Description"
]
}
]Coloring from a record field
backgroundColor accepts either a fixed colour or a JSON string of coloring rules (same color / exp format as the Single Calendar). A rule's color may be $record.<FieldApiName> to paint each activity with the colour stored on the record.
Below is a step by step tutorial to configure the GM - Compact Calendar 👇.
Next steps
Last updated
Was this helpful?