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

Implements

OnDestroy

Metadata

Relationships

<c8y-widget-code-editor
  [config]="htmlWidgetConfigService.config$ | async"
  [mode]="'code'"
  (codeChange)="onCodeChange($event)"
  (cssChange)="onCssChange($event)"
></c8y-widget-code-editor>

<ng-template #htmlPreview>
  @if ((widgetConfigService.currentConfig$ | async)?.displayMode !== 'dashboard') {
    <c8y-local-controls
      [controls]="controls"
      [displayMode]="(widgetConfigService.currentConfig$ | async)?.displayMode"
      [config]="globalContextState$ | async"
      [disabled]="true"
    ></c8y-local-controls>
  }
  <c8y-html-frame
    [config]="htmlWidgetConfigService.codeEditorChangeConfig$ | async"
    [device]="(widgetConfigService.currentConfig$ | async).device"
    [propertyValues$]="propertyValues$"
    [useSalt]="true"
  ></c8y-html-frame>
</ng-template>

results matching ""

    No results matching ""