The Calendar shows records of any object on a month, week, day or agenda view. Events are loaded per visible date range from the server, so large objects stay fast.
On narrow screens or in narrow page columns, the calendar navigation, date heading and view buttons wrap onto additional lines to fit the component width. All configured views remain available.
| Setting | Key | Notes |
|---|---|---|
| Object | objectName |
Standard Event, Shift, Booking, Interview... |
| Start and end fields | startField, endField |
Date or date time. Date fields render as all day events |
| Title | titleField or titleTemplate |
Templates accept [[Field]] tags |
| Colour | colorField, colorMap, color |
Map values to design system colour names (brand, accent, ok, warn, danger, info; legacy primary, success, warning, error still accepted) or hex colours |
| Detail fields | detailFields |
Shown in the detail modal |
| Filter | filter |
For example Contact__c = :contactUser.Id |
| Views | views, defaultView, firstDay, hideWeekends |
|
| Drag to reschedule | allowDrag |
Writes start (and end) fields; the server validates scope and flags |
| Maximum | maxRecords |
Per visible range (default 500) |
| Event click | eventClick |
modal (default), page, url or event |
{
"type": "calendar-view",
"objectName": "b3s__Shift__c",
"startField": "b3s__Start__c",
"endField": "b3s__End__c",
"titleTemplate": "[[b3s__Work_Job__r.Name]] ยท [[b3s__Site__r.Name]]",
"colorField": "b3s__Status__c",
"colorMap": { "Confirmed": "success", "Open": "warning", "Cancelled": "error" },
"filter": "b3s__Contact__c = :contactUser.Id",
"views": ["month", "week", "agenda"],
"defaultView": "week",
"allowDrag": false,
"eventClick": { "type": "page", "page": "Shift Detail" }
}
Date times are displayed in the browser's time zone. Events: portalrecordsloaded, portalrowclick, portalrecordsaved.