set manifest on property editor uis (#19461)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user