[Library | Trunk]: Input component: Add required to all types of input.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58695 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-05-14 13:02:25 +00:00
parent 14ab4b5d86
commit 81b260efdf
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ export interface Option {
<input *ngIf="type === 'text'" matInput [placeholder]="label" <input *ngIf="type === 'text'" matInput [placeholder]="label"
[formControl]="formControl" [required]="required"> [formControl]="formControl" [required]="required">
<textarea *ngIf="type === 'textarea'" [rows]="rows" matInput <textarea *ngIf="type === 'textarea'" [rows]="rows" matInput
[placeholder]="label" [formControl]="formControl"></textarea> [placeholder]="label" [formControl]="formControl" [required]="required"></textarea>
<mat-select *ngIf="type === 'select'" [placeholder]="label" <mat-select *ngIf="type === 'select'" [placeholder]="label" [required]="required"
(openedChange)="stopPropagation()" [formControl]="formControl" [disableOptionCentering]="true"> (openedChange)="stopPropagation()" [formControl]="formControl" [disableOptionCentering]="true">
<mat-option *ngFor="let option of options" [value]="option.value"> <mat-option *ngFor="let option of options" [value]="option.value">
{{option.label}} {{option.label}}