File

core/realtime/realtime-button.component.ts

Metadata

Index

Methods
Inputs
Outputs
Accessors

Inputs

disabled
Type : boolean
label
Type : string
Default value : gettext('Realtime')
service
Type : RealtimeService<>
title
Type : string
Default value : gettext('Toggle realtime')

Outputs

onToggle
Type : EventEmitter<boolean>

Methods

toggle
toggle()
Returns : void

Accessors

active
getactive()
<button
  type="button"
  class="btn btn-link c8y-realtime"
  [title]="title | translate"
  [disabled]="disabled"
  (click)="toggle()"
>
  <span
    class="c8y-pulse"
    [ngClass]="{ active: active, inactive: !active }"
  ></span>
  <span>{{ label | translate }}</span>
</button>

results matching ""

    No results matching ""