Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
965 B

<div class="array-container" *ngIf="arrayControl.controls.length > 0">
<div class="array-item" *ngFor="let nestedForm of arrayControl.controls; let i = index">
<button type="button" class="btn btn-link btn-danger array-item-remove" (click)="removeItem(i); $event.preventDefault()">
<i class="icon-bin2"></i>
</button>
<div class="form-group" *ngFor="let nestedField of field.nested">
<ng-container *ngIf="nestedForm.get(nestedField.name); let nestedFieldForm">
<sqx-field-editor
[form]="form"
[field]="nestedField"
[language]="language"
[languages]="languages"
[control]="nestedFieldForm">
</sqx-field-editor>
</ng-container>
</div>
</div>
</div>
<button class="btn btn-success" (click)="addItem(); $event.preventDefault()">
Add Item
</button>