2017-11-27 14:40:16 +01:00
|
|
|
<div [formGroup]="form">
|
2018-10-19 11:59:54 +02:00
|
|
|
<mat-form-field>
|
|
|
|
<mat-select formControlName="value" [required]="field.validationRequired">
|
|
|
|
<mat-option *ngFor="let opt of field.data.options" [value]="assign(opt)">{{opt.label}}</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="form.get('value').errors?.required">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
2017-12-28 17:32:28 +01:00
|
|
|
|
2018-10-19 11:59:54 +02:00
|
|
|
</div>
|