//HTML example
<select class="selectYeartag" ng-model="$parent.caliculatedvalues.yearITSOTHER[$index]">
<option value="2020">2020</option>
<option value="2021">2021</option>
</select>
//JSON structure in angular controller
$scope.caliculatedvalues = {
"Price_GLT": {},
"sum_GLT": {},
"amount_GLT": {},
"additionalcost_GLT": {},
"outputcost_GLT": {},
"myTextareaGLT": {},
"total_sum_GLT": "",
"total_sumonly_GLT": "",
"total_additionalCostFinal_GLT": "",
"yearGLT":{},
"NRE_CapEx_GLT":{},
"yearITSOTHER":{}
}
//Other example
{
"header": [
{
"colspan":1,
"content":"GLT(Large Load Carrier)"
},
{
"colspan":1,
"content":"Number"
},
{
"colspan":1,
"content":"Size"
},
{
"colspan":1,
"content":"Load Capacity"
},
{
"colspan":1,
"content":"Load"
},
{
"colspan":1,
"content":"Tare Weight"
},
{
"colspan":8,
"content":""
}
],
"footer": [
[{
"colspan": 4,
"content": "Additional:",
"color":"lightblue"
},
{
"colspan": 5,
"content": "Shipping Costs",
"color":"lightgrey"
}],
[{
"colspan": 4,
"content": "Check demand and fill in expenses if needed:",
"color":"lightblue"
},
{
"colspan": 5,
"content": "Adaption on load carrier",
"color":"lightgrey"
}],
[{
"colspan": 4,
"content": "",
"color":""
},
{
"colspan": 5,
"content": "Inlays",
"color":"lightgrey"
}]
]
}
<select class="selectYeartag" ng-model="$parent.caliculatedvalues.yearITSOTHER[$index]">
<option value="2020">2020</option>
<option value="2021">2021</option>
</select>
//JSON structure in angular controller
$scope.caliculatedvalues = {
"Price_GLT": {},
"sum_GLT": {},
"amount_GLT": {},
"additionalcost_GLT": {},
"outputcost_GLT": {},
"myTextareaGLT": {},
"total_sum_GLT": "",
"total_sumonly_GLT": "",
"total_additionalCostFinal_GLT": "",
"yearGLT":{},
"NRE_CapEx_GLT":{},
"yearITSOTHER":{}
}
//Other example
{
"header": [
{
"colspan":1,
"content":"GLT(Large Load Carrier)"
},
{
"colspan":1,
"content":"Number"
},
{
"colspan":1,
"content":"Size"
},
{
"colspan":1,
"content":"Load Capacity"
},
{
"colspan":1,
"content":"Load"
},
{
"colspan":1,
"content":"Tare Weight"
},
{
"colspan":8,
"content":""
}
],
"footer": [
[{
"colspan": 4,
"content": "Additional:",
"color":"lightblue"
},
{
"colspan": 5,
"content": "Shipping Costs",
"color":"lightgrey"
}],
[{
"colspan": 4,
"content": "Check demand and fill in expenses if needed:",
"color":"lightblue"
},
{
"colspan": 5,
"content": "Adaption on load carrier",
"color":"lightgrey"
}],
[{
"colspan": 4,
"content": "",
"color":""
},
{
"colspan": 5,
"content": "Inlays",
"color":"lightgrey"
}]
]
}
Comments
Post a Comment