new changes

This commit is contained in:
2024-09-24 18:45:32 +05:30
parent da96f2ea7d
commit e5344b4e7d
4 changed files with 66 additions and 10 deletions

View File

@@ -6,11 +6,12 @@
<div formArrayName="rows">
<div *ngFor="let row of rows.controls; let rowIndex = index" [formGroupName]="rowIndex">
<div formArrayName="columns" class="add-col-section">
<div *ngFor="let column of getColumns(row).controls; let colIndex = index" [formGroupName]="colIndex">
<div class="row">
<div class="row d-flex" *ngFor="let column of getColumns(row).controls; let colIndex = index" [formGroupName]="colIndex">
<div class="col-md-2">
<div class="form-group">
<select formControlName="type" class="form-control" >
<option value="" selected disabled>--Select--</option>
<option value="text">Text</option>
<option value="variable">Variable</option>
</select>
@@ -18,17 +19,15 @@
</div>
<div class="col-md-2" *ngIf="isText(row, colIndex)">
<div class="form-group" >
<input type="text" formControlName="textValue" placeholder="Enter text" class="form-control" >
<input type="text" formControlName="textValue" placeholder="Enter text" class="form-control" (change)="onParamChange($event)" >
</div>
</div>
<div class="col-md-2" *ngIf="isVariable(row, colIndex)">
<div class="form-group" >
<select formControlName="variableValue" class="form-control" >
<option *ngFor="let variable of variableList" [value]="variable">{{ variable }}</option>
</select>
<input formControlName="variableValue" class="form-control" placeholder="Enter variable" >
</div>
</div>
</div>
</div>
</div>