[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:
parent
14ab4b5d86
commit
81b260efdf
|
@ -17,8 +17,8 @@ export interface Option {
|
|||
<input *ngIf="type === 'text'" matInput [placeholder]="label"
|
||||
[formControl]="formControl" [required]="required">
|
||||
<textarea *ngIf="type === 'textarea'" [rows]="rows" matInput
|
||||
[placeholder]="label" [formControl]="formControl"></textarea>
|
||||
<mat-select *ngIf="type === 'select'" [placeholder]="label"
|
||||
[placeholder]="label" [formControl]="formControl" [required]="required"></textarea>
|
||||
<mat-select *ngIf="type === 'select'" [placeholder]="label" [required]="required"
|
||||
(openedChange)="stopPropagation()" [formControl]="formControl" [disableOptionCentering]="true">
|
||||
<mat-option *ngFor="let option of options" [value]="option.value">
|
||||
{{option.label}}
|
||||
|
|
Loading…
Reference in New Issue