- Components
-
ScadaWidgetViewComponent
widgets/implementations/scada/scada-widget-view/scada-widget-view.component.ts
@let cfg = effectiveConfig();
@if (cfg) {
@if (cfg.displayMode === GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD) {
@if (dashboardChild) {
<c8y-global-context-connector
[controls]="PRESET_NAME.AUTO_REFRESH_ONLY_CONFIG"
[config]="cfg"
[isLoading]="isLoading()"
[dashboardChild]="dashboardChild"
[linked]="isLinkedToGlobal()"
[propagateAutoRefresh]="false"
(configChange)="onContextChange($event)"
(refresh)="onRefresh()"
>
</c8y-global-context-connector>
}
} @else {
<c8y-local-controls
[controls]="PRESET_NAME.AUTO_REFRESH_ONLY_CONFIG"
[displayMode]="cfg.displayMode"
[config]="cfg"
[isLoading]="isLoading()"
[propagateAutoRefresh]="false"
(configChange)="onContextChange($event)"
(refresh)="onRefresh()"
>
</c8y-local-controls>
}
<c8y-html-frame
[config]="htmlFrameConfig()"
[device]="device()"
[propertyValues$]="propertyValues$"
[realtimeControl$]="realtimeControl$"
></c8y-html-frame>
}