core/realtime/realtime-button.component.ts
selector | c8y-realtime-btn |
templateUrl | ./realtime-button.component.html |
Methods |
Inputs |
Outputs |
Accessors |
disabled |
Type : boolean
|
label |
Type : string
|
Default value : gettext('Realtime')
|
service |
Type : RealtimeService<>
|
title |
Type : string
|
Default value : gettext('Toggle realtime')
|
onToggle |
Type : EventEmitter<boolean>
|
toggle |
toggle()
|
Returns :
void
|
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>