File

services/services-device-tab/columns/status.cell-renderer.component.ts

Metadata

Index

Properties

Constructor

constructor(context: CellRendererContext, statusOptionsService: StatusOptionsService)
Parameters :
Name Type Optional
context CellRendererContext No
statusOptionsService StatusOptionsService No

Properties

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>

results matching ""

    No results matching ""