In this example , in the inner fields, I have a button as a field and I want to open a modal popup on the click of that button. and I need to pass all the fields with their model values. So that i can edit that particular investment. Currently I am able to pass only model. I want to make my modal popup more generic and so I want it to take fields as well from the JSON.
http://angular-formly.com/#/example/advanced/repeating-section
In this example , in the inner fields, I have a button as a field and I want to open a modal popup on the click of that button. and I need to pass all the fields with their model values. So that i can edit that particular investment. Currently I am able to pass only model. I want to make my modal popup more generic and so I want it to take fields as well from the JSON.
Hoping you could guide me on the same.
{ "key": "expectedFund", "type": "customLayout", "templateOptions": { "buttonLabel": "Add Row", "columnHeader": ["First Name", "City of Birth", "Last Name", "Date Of Birth"], "columclass": "col-xs-6 col-sm-4 col-md-3 col-lg-2", "label": "testing row", "fields": [{ "fieldGroup": [{ "className": "col-xs-6 col-sm-4 col-md-3 col-lg-2", "key": "firstname", "type": "input", "templateOptions": {
customLayout:
button: