Skip to content
Snippets Groups Projects
Commit e17e9f03 authored by rhenck's avatar rhenck
Browse files

[editor-ui] More textareas

Use textareas in several places where longer text is expected/common.

#637
parent 0bcd3b5b
No related branches found
No related tags found
No related merge requests found
...@@ -18,14 +18,19 @@ ...@@ -18,14 +18,19 @@
<mat-form-field *ngIf="combinedProperties.label !== undefined && combinedProperties.required === undefined" <mat-form-field *ngIf="combinedProperties.label !== undefined && combinedProperties.required === undefined"
appearance="fill"> appearance="fill">
<mat-label>{{'propertiesPanel.label' | translate }}</mat-label> <mat-label>{{'propertiesPanel.label' | translate }}</mat-label>
<input matInput type="text" [value]="$any(combinedProperties.label)" <textarea matInput type="text"
(input)="updateModel.emit({property: 'label', value: $any($event.target).value })"> [value]="$any(combinedProperties.label)"
(input)="updateModel.emit({property: 'label', value: $any($event.target).value })">
</textarea>
</mat-form-field> </mat-form-field>
<mat-form-field *ngIf="combinedProperties.label2 !== undefined" appearance="fill"> <mat-form-field *ngIf="combinedProperties.label2 !== undefined" appearance="fill">
<mat-label>{{'propertiesPanel.label2' | translate }}</mat-label> <mat-label>{{'propertiesPanel.label2' | translate }}</mat-label>
<input matInput type="text" [value]="$any(combinedProperties.label2)" <textarea matInput type="text"
(input)="updateModel.emit({property: 'label2', value: $any($event.target).value })"> [value]="$any(combinedProperties.label2)"
(input)="updateModel.emit({property: 'label2', value: $any($event.target).value })">
</textarea>
</mat-form-field> </mat-form-field>
<aspect-options-field-set [combinedProperties]="combinedProperties" <aspect-options-field-set [combinedProperties]="combinedProperties"
......
...@@ -10,8 +10,10 @@ import { UIElement } from 'common/models/elements/element'; ...@@ -10,8 +10,10 @@ import { UIElement } from 'common/models/elements/element';
<legend>Eingabeelement</legend> <legend>Eingabeelement</legend>
<mat-form-field *ngIf="combinedProperties.label !== undefined" appearance="fill"> <mat-form-field *ngIf="combinedProperties.label !== undefined" appearance="fill">
<mat-label>{{'propertiesPanel.label' | translate }}</mat-label> <mat-label>{{'propertiesPanel.label' | translate }}</mat-label>
<input matInput type="text" [value]="$any(combinedProperties.label)" <textarea matInput type="text"
(input)="updateModel.emit({property: 'label', value: $any($event.target).value })"> [value]="$any(combinedProperties.label)"
(input)="updateModel.emit({ property: 'label', value: $any($event.target).value })">
</textarea>
</mat-form-field> </mat-form-field>
<mat-checkbox *ngIf="combinedProperties.readOnly !== undefined" <mat-checkbox *ngIf="combinedProperties.readOnly !== undefined"
......
...@@ -13,8 +13,8 @@ import { Label } from 'common/models/elements/label-interfaces'; ...@@ -13,8 +13,8 @@ import { Label } from 'common/models/elements/label-interfaces';
<legend>{{title | translate }}</legend> <legend>{{title | translate }}</legend>
<mat-form-field appearance="outline"> <mat-form-field appearance="outline">
<mat-label>{{textFieldLabel}}</mat-label> <mat-label>{{textFieldLabel}}</mat-label>
<input #newItem matInput type="text" placeholder="Fragetext" <textarea #newItem matInput cdkTextareaAutosize type="text"
(keyup.enter)="addListItem(newItem.value); newItem.select()"> (keyup.enter)="addListItem(newItem.value); newItem.select()"></textarea>
<button mat-icon-button matSuffix color="primary" <button mat-icon-button matSuffix color="primary"
(click)="addListItem(newItem.value); newItem.select()"> (click)="addListItem(newItem.value); newItem.select()">
<mat-icon>add</mat-icon> <mat-icon>add</mat-icon>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment