File

alarms/alarm-severities-to-title.pipe.ts

Description

Pipe for transforming an array of alarm severity types into a comma-separated string.

Example :
Usage in a template: {{ ['WARNING', 'CRITICAL'] | AlarmSeveritiesToTitle }}
Result: 'Warning, Critical'

Metadata

Methods

transform
transform(severities: SeverityType[])

Transforms an array of alarm severity types into a comma-separated string.

Parameters :
Name Type Optional Description
severities SeverityType[] No
  • Array of severity types.
Returns : string
  • Transformed human-readable title string.

results matching ""

    No results matching ""