add config prop to property editors
This commit is contained in:
@@ -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> = [];
|
||||
|
||||
|
||||
@@ -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 }));
|
||||
|
||||
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user