Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

1

Open the page

Select an Opportunity and edit the page in the Lightning App Builder.

2

Add the component

From components list, drag and drop the component GM - Compact calendar. The GM - Compact calendar component is now ready for configuration in the Lightning App Builder.

3

Configure the properties

The property values can be configured to tailor the component to the needs of the end-user. To perform a quick configuration, populate the properties in the table below.

Properties

Property
Demo value
Notes

Title

Opportunity Calendar

Custom Icon

standard:task

Json config

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 👇.

GridMate - Compact Calendar

Next steps

Last updated

Was this helpful?