widgets/implementations/html-widget/html-widget-config.component.ts
| selector | c8y-html-widget-config |
| standalone | true |
| imports | |
| templateUrl | ./html-widget-config.component.html |
No results matching.
<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>