add config prop to property editors

This commit is contained in:
Mads Rasmussen
2022-09-27 13:32:58 +02:00
parent fbd1b1e08f
commit cfa3bc2f96
3 changed files with 9 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ export class UmbPropertyEditorContentPickerElement extends UmbContextConsumerMix
@property({ type: Array })
public value: Array<string> = [];
@property({ type: Array, attribute: false })
public config = [];
@state()
private _items: Array<Entity> = [];

View File

@@ -16,6 +16,9 @@ export class UmbPropertyEditorNumberElement extends LitElement {
@property()
value = '';
@property({ type: Array, attribute: false })
public config = [];
private onInput(e: InputEvent) {
this.value = (e.target as HTMLInputElement).value;
this.dispatchEvent(new CustomEvent('property-editor-change', { bubbles: true, composed: true }));

View File

@@ -16,6 +16,9 @@ export class UmbPropertyEditorTextElement extends LitElement {
@property()
value = '';
@property({ type: Array, attribute: false })
public config = [];
private onInput(e: InputEvent) {
this.value = (e.target as HTMLInputElement).value;
this.dispatchEvent(new CustomEvent('property-editor-change', { bubbles: true, composed: true }));