Skip to content

Commit 50dff11

Browse files
committed
updated key to use textarea
1 parent 7baf464 commit 50dff11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/components/add-value-form/add-value-form.component.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
<div *ngIf="type !== 'String'" class="add-form-list">
1111
<div class="line" *ngFor="let v of getItemArray(); let i = index">
1212
<mat-form-field *ngIf="type === 'Hash Map'" style="flex-grow:0">
13-
<input matInput placeholder="Key"
13+
<textarea matInput placeholder="Key"
1414
[readonly]="isEditMode && !v.isNew"
1515
(change)="onValueChange()"
16-
[(ngModel)]="getItemArray()[i].key">
16+
[(ngModel)]="getItemArray()[i].key"
17+
cdkTextareaAutosize
18+
cdkAutosizeMinRows="1"
19+
cdkAutosizeMaxRows="7"></textarea>
1720
</mat-form-field>
1821

1922
<mat-form-field *ngIf="type === 'List' || type === 'Set' || type === 'Ordered Set' || type === 'Hash Map'">

0 commit comments

Comments
 (0)