File

app-logs/app-logs-auto-refresh.component.ts

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(appLogsService: AppLogsService)
Parameters :
Name Type Optional
appLogsService AppLogsService No

Inputs

buttonsDisabled
Type : boolean
mo
Type : any
selectedInstance
Type : any

Outputs

isRealtimeEnabled
Type : EventEmitter
onNewLogs
Type : EventEmitter

Methods

ngAfterViewInit
ngAfterViewInit()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void

Properties

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()

Accessors

buttonsDisabled
setbuttonsDisabled(areDisabled: boolean)
Parameters :
Name Type Optional
areDisabled boolean No
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>

results matching ""

    No results matching ""