widgets/implementations/html-widget/html-widget.component.ts

Implements

DynamicComponent OnInit

Metadata

Relationships

@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>

results matching ""

    No results matching ""