global-context/features/refresh/realtime-control/realtime-control.component.ts

Implements

ControlValueAccessor

Metadata

Relationships

Used by

No results matching.

Depends on

@let buttonLabel = (isActive ? disableRealtimeLabel : enableRealtimeLabel) | translate;

<button
  class="btn btn-icon c8y-realtime"
  [attr.aria-label]="buttonLabel"
  [tooltip]="tooltipTpl"
  placement="top"
  container="body"
  type="button"
  data-cy="global-context--realtime-toggle"
  (click)="onButtonClick()"
  [adaptivePosition]="false"
  [delay]="500"
  [disabled]="disabled"
>
  <span
    class="c8y-pulse m-0"
    [class.active]="isActive"
    [class.inactive]="!isActive"
  ></span>
</button>
<ng-template #tooltipTpl>
  {{ buttonLabel }}
</ng-template>

results matching ""

    No results matching ""