services/services-device-tab/columns/status.cell-renderer.component.ts
selector | c8y-services-status-cell-renderer |
templateUrl | status.cell-renderer.component.html |
Properties |
|
constructor(context: CellRendererContext, statusOptionsService: StatusOptionsService)
|
|||||||||
Parameters :
|
Public context |
Type : CellRendererContext
|
Public statusOptionsService |
Type : StatusOptionsService
|
<span [ngSwitch]="context.item.status">
<ng-container *ngFor="let option of statusOptionsService.options">
<i
*ngSwitchCase="option.key"
[c8yIcon]="option.icon"
class="{{ option.class }}"
[tooltip]="option.label | translate"
container="body"
placement="top"
></i>
</ng-container>
<i
*ngSwitchDefault
c8yIcon="job"
class="text-primary"
[tooltip]="context.item.status"
container="body"
placement="top"
></i>
</span>