File

device-grid/columns/alarms.cell-renderer.component.ts

Metadata

templateUrl ./alarms.cell-renderer.component.html

Index

Properties

Constructor

constructor(context: CellRendererContext, deviceGridService: DeviceGridService)
Parameters :
Name Type Optional
context CellRendererContext No
deviceGridService DeviceGridService No

Properties

Public context
context: CellRendererContext
Type : CellRendererContext
Public deviceGridService
deviceGridService: DeviceGridService
Type : DeviceGridService
Decorators :
@Inject(undefined)
<a class="listLink"
  [href]="deviceGridService.getAlarmsHref(context.item)" 
>
  <small class="status critical text-nowrap"
    *ngIf="context.item.c8y_ActiveAlarmsStatus?.critical"
  >
    {{ context.item.c8y_ActiveAlarmsStatus?.critical }}
    <i [c8yIcon]="'warning'"></i>
  </small>
  <small class="status major text-nowrap"
    *ngIf="context.item.c8y_ActiveAlarmsStatus?.major"
  >
    {{ context.item.c8y_ActiveAlarmsStatus?.major }}
    <i [c8yIcon]="'exclamation-circle'"></i>
  </small>
  <small class="status minor text-nowrap"
    *ngIf="context.item.c8y_ActiveAlarmsStatus?.minor"
  >
    {{ context.item.c8y_ActiveAlarmsStatus?.minor }}
    <i [c8yIcon]="'exclamation-circle'"></i>
  </small>
  <small class="status warning text-nowrap"
    *ngIf="context.item.c8y_ActiveAlarmsStatus?.warning"
  >
    {{ context.item.c8y_ActiveAlarmsStatus?.warning }}
    <i [c8yIcon]="'circle'"></i>
  </small>
</a>

result-matching ""

    No results matching ""