core/realtime/realtime-button.component.ts
selector | c8y-realtime-btn |
templateUrl | ./realtime-button.component.html |
Methods |
Inputs |
Accessors |
label |
Type : string
|
Default value : gettext('Realtime')
|
service |
Type : RealtimeService<any>
|
title |
Type : string
|
Default value : gettext('Toggle realtime')
|
toggle |
toggle()
|
Returns :
void
|
active |
getactive()
|
<button
type="button"
class="btn btn-link c8y-realtime"
title="{{ title | translate }}"
(click)="toggle()"
>
<span class="c8y-pulse" [ngClass]="{ active: active, inactive: !active }"></span>
<span>{{ label | translate }}</span>
</button>