Verified Commit ac14fb79 authored by João Capucho's avatar João Capucho
Browse files

Improve LONGTEXT input

parent 890588b3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
<!-- <mat-form-field> must be redefined for each case, because otherwise the
     material selectors don't function correctly -->
<ng-container [ngSwitch]="valueType">
    <ng-container *ngSwitchCase="'LONGTEXT'">
        <mat-form-field [appearance]="appearance">
            <mat-label>{{ label }}</mat-label>

            <textarea matInput matTextareaAutosize="true" matAutosizeMaxRows="4"
                [formControl]="ngControl.control"></textarea>
        </mat-form-field>
    </ng-container>

    <ng-container *ngSwitchDefault>
        <mat-form-field [appearance]="appearance">
            <mat-label>{{ label }}</mat-label>