File

alarms/alarm-status-to-icon.pipe.ts

Description

Angular pipe for transforming alarm statuses into corresponding icons.

Example :
Usage in an Angular template:
{{ 'ACTIVE' | AlarmStatusToIcon }}
Result: 'bell'

Metadata

Methods

transform
transform(alarmStatus: AlarmStatusType)

Transforms an alarm status into a corresponding icon.

Parameters :
Name Type Optional Description
alarmStatus AlarmStatusType No
  • The status of the alarm.
  • The corresponding icon for the given alarm status.

results matching ""

    No results matching ""