Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 739549c

Browse files
committed
pass readonly mode
1 parent e005a6b commit 739549c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ export class UmbPropertyEditorUITagsElement extends UmbLitElement implements Umb
2525
return this._value;
2626
}
2727

28+
/**
29+
* Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
30+
* @type {boolean}
31+
* @attr
32+
* @default false
33+
*/
34+
@property({ type: Boolean, reflect: true })
35+
readonly = false;
36+
2837
@state()
2938
private _group?: string;
3039

@@ -62,7 +71,8 @@ export class UmbPropertyEditorUITagsElement extends UmbLitElement implements Umb
6271
group=${ifDefined(this._group)}
6372
.culture=${this._culture}
6473
.items=${this.value}
65-
@change=${this.#onChange}></umb-tags-input>`;
74+
@change=${this.#onChange}
75+
?readonly=${this.readonly}></umb-tags-input>`;
6676
}
6777
}
6878

0 commit comments

Comments
 (0)