alarms/alarm-severities-to-title.pipe.ts
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'
Name | AlarmSeveritiesToTitle |
transform | ||||||||
transform(severities: SeverityType[])
|
||||||||
Transforms an array of alarm severity types into a comma-separated string.
Parameters :
Returns :
string
|