3.2.3. Calendars
Enabling Calendars within the Features tab allows you to specify one or more calendars, similar to Google and Outlook. For example, you can have Personal and Holiday calendars or the calendars of multiple people with definable calendar colors.
It is also possible to select or assign the calendar in the default edit popup.
Calendars
To enable calendars it should first be enabled under the features tab.
After this you can define a datasource for your calendars. At a minimum the calendar needs a name but you can also assing it a custom color and custom class.
The default calendar let’s you define what calendar is used for newly created events.
Persisting data
When calendars are enabled and you want to persist data (such as changes or the creation of events), you need to map “Event calendar(s)” to an association on your context to your calendar entity. This association will be updated with the new calendar assigned to the event. This value can be used in on-change or create flows to persist the calendar for the event in the database.
Note that both many-to-many and many-to-one associations are supported, allowing you to assign events to either one calendar or multiple calendars. Ensure that you set the same type of association in both the General tab and the Events tab.