app-logs/app-logs-auto-refresh.component.ts
| selector | c8y-app-logs-auto-refresh |
| templateUrl | ./app-logs-auto-refresh.component.html |
Properties |
Methods |
Inputs |
Outputs |
Accessors |
constructor(appLogsService: AppLogsService)
|
||||||
|
Parameters :
|
| buttonsDisabled |
Type : boolean
|
| mo |
Type : any
|
| selectedInstance |
Type : any
|
| isRealtimeEnabled |
Type : EventEmitter
|
| onNewLogs |
Type : EventEmitter
|
| ngAfterViewInit |
ngAfterViewInit()
|
|
Returns :
void
|
| ngOnDestroy |
ngOnDestroy()
|
|
Returns :
void
|
| button |
Type : ElementRef
|
Decorators :
@ViewChild('autoRefresh', {static: true})
|
| cancel$ |
Type : Subject<boolean>
|
Default value : new Subject<boolean>()
|
| isAutoRefreshDisabled |
Type : boolean
|
Default value : false
|
| isAutoRefreshOn |
Type : boolean
|
Default value : true
|
| logsToOutput |
Type : LogsJSON
|
Default value : this.getEmptyLogsJson()
|
| buttonsDisabled | ||||||
setbuttonsDisabled(areDisabled: boolean)
|
||||||
|
Parameters :
Returns :
void
|
<button #autoRefresh
type="button"
class="btn btn-link c8y-realtime"
[ngStyle]="{'width': 'auto'}"
title="{{'Toggle auto refresh' | translate}}"
[disabled]="isAutoRefreshDisabled"
>
<span class="c8y-pulse" [ngClass]="isAutoRefreshOn ? 'active' : 'inactive'"></span>
{{'Auto refresh' | translate}}
</button>