Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Adding data to Datasource
posted

Hello All

I want to add data to the data source of igtree using a for loop

My nodes are gonna be Well #1, Well #2 and their child being Stage #1, Stage #2 and so one so forth.

Can anyone help me include a for loop in the following format:

var data = [
{ "Text": "xyz", "Value": "1", "Wells": [
{ "Text": "Well #1", "Value": "11", "Stages": [
{ "Text": "Stage #1", "Value": "111" },
{ "Text": "Stage #2", "Value": "112"}]
},
{ "Text": "Well #2", "Value": "12", "Stages": [
{ "Text": "Stage #1", "Price": "121" },
{ "Text": "Stage #2", "Price": "122"}]
}
]
}];

Parents Reply Children
No Data