2018-10-02 16:33:58 +02:00
|
|
|
<h5 style="font-weight: bold">Radio Box Description</h5>
|
|
|
|
<div [formGroup]="form">
|
2018-10-05 17:00:54 +02:00
|
|
|
<div fxLayout="row">
|
|
|
|
<div fxFlex>
|
|
|
|
<mat-form-field class="full-width">
|
|
|
|
<input matInput type="string" placeholder="RadioBox Placeholder" [formControl]="this.form.get('data').get('label')">
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div *ngFor="let option of form.get('data').get('options')['controls'] index as i">
|
|
|
|
<div fxLayout="row">
|
|
|
|
<div fxFlex>
|
|
|
|
<mat-form-field class="full-width">
|
|
|
|
<input matInput type="string" placeholder="Label" [formControl]="this.form.get('data').get('options').get(''+i).get('label')">
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
<div fxFlex>
|
|
|
|
<mat-form-field class="full-width">
|
|
|
|
<input matInput type="string" placeholder="Value" [formControl]="this.form.get('data').get('options').get(''+i).get('value')">
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button mat-button (click)="addNewRow()" style="cursor: pointer">
|
|
|
|
Add +
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-02-02 11:57:24 +01:00
|
|
|
|
2018-07-11 15:47:36 +02:00
|
|
|
</div>
|