File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/packages/property-editors/textarea Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,15 @@ export class UmbPropertyEditorUITextareaElement extends UmbLitElement implements
11
11
@property ( )
12
12
value = '' ;
13
13
14
+ /**
15
+ * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
16
+ * @type {boolean }
17
+ * @attr
18
+ * @default false
19
+ */
20
+ @property ( { type : Boolean , reflect : true } )
21
+ readonly = false ;
22
+
14
23
@state ( )
15
24
private _maxChars ?: number ;
16
25
@@ -52,7 +61,8 @@ export class UmbPropertyEditorUITextareaElement extends UmbLitElement implements
52
61
.maxlength = ${ this . _maxChars }
53
62
.rows = ${ this . _rows }
54
63
.value = ${ this . value ?? '' }
55
- @input = ${ this . #onInput} > </ uui- textarea>
64
+ @input = ${ this . #onInput}
65
+ ?readonly = ${ this . readonly } > </ uui- textarea>
56
66
` ;
57
67
}
58
68
You can’t perform that action at this time.
0 commit comments