GM - Multi Calendar

(gmpkg:CalendarComponent)

Documentation

GM - Multi Calendar component is used to display a calendar view to easily handle task/event assignment for multiple resources. The component display horizontal time-axis and resources to assign as rows. Activities will be created, edited or deleted from the calendar cells. The component supports activities drag & drop like any calendar app.

With this component, we can display multiple objects on the same view to have 360 view of team's activity.

Use case: Display a calendar view for a specific team to manage event and tasks for a specific project.

Specification

Property
Type
Description

Custom Label

String

Set the label of the calendar.

Custom Icon

String

Customize the calendar icon. All lightning icons are supported. You can get the icon name from https://lightningdesignsystem.com/icons/

Calendar Height

Integer

Set the grid height. Set this property if you want to control the height and show up components after the grid. The user has to scroll vertically to see more records.

If the value is set 9999, The calendar will use the remaining space on the page even if the user resizes the window. This behavior is relevant to build a responsive app page.

Calendar Style

String

CSS hooks to override the style of the calendar. The properties are available: the minimum activity cell width and the assignee width. See example below:

cell-min-width:10rem;col-header-width:10rem;

# Of Visible Activities

Integer

Set the number of visibles activities (3 by default).

Extra activities will be displayed in the extra wrapper when the user click on link.

By setting the number if visible activities, we can control the height of the rows.

Default View

String

Calendar default view : daily | weekly | monthly | quarterly.

The user can still change the view using the view switcher when the calendar is rendered.

Week Start Day

Integer

Week start day from 0 to 6. 0 is Monday.

Day Start Hour

Integer

Day start hour from 0 to 11.

Skip Night Hours

Boolean

Check this options to skip the night hours (12 hours) when the user clicks Next/Prev.

Year Start

String

Set the start of the year (month). Used only for quarterly view

Show Actions as Buttons

Boolean

Check this option if you wish to display actions as buttons instead of icons.

Assignee

Assignee Object*

String

The name of the assignee object to display. Don’t forget __c for custom objects.

Assignee ListView*

String

The ListView API Name of the assignee object to display. The component will use the ListView filter to fetch the relevant records.

Available Assignee ListView(s)

String

',' Separated list of assignee ListView(s). The user will be able to switch between different ListView(s) to streamline the assignment process.

Assignee Filter*

String

JSON string to define filter criteria. Don’t forget __c for custom fields.

See GM - RelatedList Grid filter property for more details.

Assignee Sort

String

The field list to sort assignee. This field is used only for the initial load.

See GM - RelatedList Grid sort property for more details.

Assignee Order

String

Ascending or descending order for sorting. For ascending enter the value asc. For descending enter the value desc.

Assignee Row Limit

Integer

The maximum number of assignee to fetch. The component will never go beyond this number of records. The default value is 100.

Assignee Title Field*

String

Set the assignee title field to display on the row header. Use __c for custom fields.

Assignee SubTitle Field

String

Set the assignee sub title field to display on the row header. Use __c for custom fields.

Assignee Popover Fields

String

',' separated list of fields to display. These fields are used when the user hover on a specific assignee.

Assignee Popover Columns #

Number

The number of columns to display the assignee detail when the user hover on a specific assignee.

Assignee Icon

String

The icon to use for the assignee object.

Assignee Label

String

Override the assignee label instead of using the object label.

Activity

Activity Object*

String

The name of the activity object to display. Don’t forget __c for custom objects.

Activity ListView*

String

The ListView API Name of the activity object to display. The component will use the ListView filter to fetch the relevant records.

Activity Title Field*

String

Set the title field to display for an activity. Use __c for custom fields.

Activity SubTitle Field

String

Set the sub title field to display for an activity. Use __c for custom fields.

Activity Date Field Name

String

Set the activity date field for an activity. Use __c for custom fields.

Activity From Date Field Name

String

Set the activity from date field for an activity. This field is required when dealing with datetimes. Use __c for custom fields.

Activity End Date Field Name

String

Set the activity end date field for an activity. This field is required when dealing with datetimes. Use __c for custom fields.

Activity User Id Field Name

String

Set the used Id field for an activity. Use __c for custom fields.

Activity Aggregations

String

Json string to define the aggregated activity fields

Activity Default Values

String

JSON string to initialize a new record created from the calendar. Use __c for custom fields.

See GM - RelatedList Grid default values property for more details.

Hidden Fields

String

',' separated list of hidden fields for modal creation. When a user creates a new record, hidden fields will be defaulted but not displayed to the end-user (RecordTypeId for instance).

See GM - RelatedList Grid hidden fields property for more details.

Activity Popover Fields

String

',' separated list fields to display. These fields are used when the user hover on a specific activity.

Activity Popover Columns #

Number

The number of columns to display the activity detail when the user hover on a specific record.

Activity Coloring

String

JSON conditions for cells coloring. You can define a list of colorings and the corresponding conditions.

See GM - RelatedList Grid cell coloring fields property for more details.

Activity Actions

String

Json string to initialize the list of available actions for an activity . See the actions configuration example

Activity Icon

String

The icon to use for the activity object.

Activity Label

String

Override the activity label instead of using the object label.

Extra Activities

String

JSON string to add extra activities. The component is able to display multiple activity types on the same calendar as long as they belong to the same object.

As an example we can build a calendar to display Events and Tasks assigned to a list of contacts. See configuration example.

Permissions

Enable Update Activity

Boolean

Check this option to allow the end-user to edit activities.

Enable Delete Activity

Boolean

Check this option to allow the end-user to delete activities.

Enable Create Activity

Boolean

Check this option to allow the end-user to create activities.

Enable Export Activity

Boolean

Check this option to allow the end-user to export activities.

Enable Toggle Fullscreen

Boolean

Check this option if you want to enable toggle fullscreen

API Reference

Last updated

Was this helpful?