mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
12 lines
590 B
HTML
12 lines
590 B
HTML
<div class="adf-dropdown-widget" [formGroup]="formGroup">
|
|
<label class="adf-dropdown-widget__label" [attr.for]="field.id">{{field.nameKey | translate}}</label>
|
|
<select [formControlName]="controllerName"
|
|
[attr.id]="'select-' + field.id"
|
|
class="adf-dropdown-widget__select"
|
|
[(ngModel)]="field.value"
|
|
(ngModelChange)="changeValue($event)">
|
|
<option *ngIf="showDefaultOption" value="null">{{defaultOptionText}}</option>
|
|
<option *ngFor="let opt of field.options" [value]="opt.id">{{opt.label}}</option>
|
|
</select>
|
|
</div>
|