widgets/implementations/html-widget/html-widget.component.ts
| selector | c8y-html-widget |
| standalone | true |
| imports | |
| templateUrl | ./html-widget.component.html |
No results matching.
@if (displayMode() === GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD) {
<c8y-global-context-connector
[controls]="PRESET_NAME.AUTO_REFRESH_ONLY_CONFIG"
[config]="contextConfig()"
[isLoading]="isLoading()"
[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]="displayMode()"
[config]="contextConfig()"
[isLoading]="isLoading()"
[propagateAutoRefresh]="false"
(configChange)="onContextChange($event)"
(refresh)="onRefresh()"
>
</c8y-local-controls>
}
<div class="p-16">
<c8y-html-frame
[config]="config().config"
[device]="config().device"
[propertyValues$]="propertyValues$()"
></c8y-html-frame>
</div>