2017-12-04 16:02:52 +01:00
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label>Type of Combobox</label>
|
2017-12-11 13:02:10 +01:00
|
|
|
<select class="form-control" [(ngModel)]="type" (change)= "onchangeCombo($event)">
|
2017-12-04 16:02:52 +01:00
|
|
|
<option *ngFor="let option of options" [value]="option.value">{{option.value}}</option>
|
|
|
|
</select>
|
2017-12-11 13:02:10 +01:00
|
|
|
<div class="form-row" [ngSwitch]="type">
|
2017-12-04 16:02:52 +01:00
|
|
|
<div *ngSwitchCase="'autocomplete'">
|
|
|
|
<autocomplete-component [form]="form" [dataModel]="dataModel"></autocomplete-component>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-11 13:02:10 +01:00
|
|
|
<div class="form-row" [ngSwitch]="type">
|
2017-12-04 16:02:52 +01:00
|
|
|
<div *ngSwitchCase="'wordlist'">
|
|
|
|
<wordlist-component [form]="form" [dataModel]="dataModel"></wordlist-component>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|