cmsmon
Version:
22 lines • 889 B
HTML
<div style="min-height: 20px;position: relative;"
ng-repeat="element in model[options.key] track by $index"
ng-init="itemOptions = copyItemOptions(to.field);_formState = createFormState($index)">
<button type="button" class="btn btn-xs btn-white"
style="position: absolute;right: 0px;z-index: 10;"
ng-click="model[options.key].splice($index, 1)">
<i class="fa fa-trash-o"></i>
</button>
<formly-field options="itemOptions"
model="model[options.key]"
form="form"
form-state="_formState"
index="$index">
</formly-field>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="button" class="btn btn-white btn-xs"
ng-click="addNew()" style="z-index: 1;">{{to.btnText}}
</button>
</div>
</div>