set manifest on property editor uis (#19461)

This commit is contained in:
Niels Lyngsø
2025-06-02 15:53:09 +02:00
committed by GitHub
parent 66da4a7775
commit c3f62f1506
2 changed files with 3 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
import type { UmbPropertyEditorConfigCollection } from '../config/index.js';
import type { ManifestPropertyEditorUi } from './property-editor.extension.js';
export interface UmbPropertyEditorUiElement extends HTMLElement {
manifest?: ManifestPropertyEditorUi;
name?: string;
value?: unknown;
config?: UmbPropertyEditorConfigCollection;

View File

@@ -334,6 +334,7 @@ export class UmbPropertyElement extends UmbLitElement {
this._element.addEventListener('change', this._onPropertyEditorChange as any as EventListener);
this._element.addEventListener('property-value-change', this._onPropertyEditorChange as any as EventListener);
// No need to observe mandatory or label, as we already do so and set it on the _element if present: [NL]
this._element.manifest = manifest;
this._element.mandatory = this._mandatory;
this._element.name = this._label;