Calendar

Prev Next

Displays a calendar with alerts, actions, and other relevant events by day.

Calendar

For each loaded element (e.g. Alerts, Actions), an event is added to the calendar according to the severity or priority, activation date, and end or due date.

When moving on the events with the cursor a tooltip will display additional information (e.g. description).

For an alert-based event, the information tooltip displays:

  • the title and description.

  • the severity (e.g. CRITICAL) and the category (e.g. ANOMALY).

  • the status (ACTIVE or CLEARED).

  • the time the alert was triggered and the duration.

For an action-based event, the information tooltip displays:

  • the title and description.

  • the priority (e.g. HIGH) and the topic (e.g. MAINTENANCE).

  • the action status (TODO, DONE, REJECTED).

  • the time the action was registered.

  • the due date by which the action must be completed.

  • the user who has completed or rejected the action.

Template Syntax

Below you can find some examples of how to use the component within a template.

Example 1

Calendar displaying alerts and actions.


<calendar-widget [title]="'Alerts and Actions'"></calendar-widget>

Example 2

Calendar displaying actions only.


<calendar-widget [title]="'Actions'" 
                 [config]="{showAlerts:false}">

</calendar-widget>

Component Reference

Here is a comprehensive list of all the elements and properties that can be used to configure the component.

Calendar <calendar-widget>

Show Actions

The flag indicating whether actions must be shown into the calendar.

Name: config.showActions

Type: BOOLEAN | Optional

Default Value: true

[config]="{showActions: false}"

Show Alerts

The flag indicating whether alerts must be shown into the calendar.

Name: config.showAlerts

Type: BOOLEAN | Optional

Default Value: true

[config]="{showAlerts: false}"

Rendering

CSS Class

The name(s) of the CSS class used to customize the widget layout.

Name: class

Type: STRING | Optional

class="my-custom-class"

Visibility Condition

The expression that allows you to reduce the visibility of the element.

Name: *ngIf

Type: STRING | Optional

*ngIf="getUser().organizationId != null"