I have a requirements to create dynamic table on the basis of array type columns in my data. Both array type column have the same number of attributes.
Here Column D AND E which I pointed in my dataset are array type columns.
{{#each data}}
<table>
<tr>
<th>REG</th>
<th>TYPE</th>
<th>STO</th>
{{#each D}}
<th>{{this}}% </th>
{{/each}}
</tr>
<tr>
<td>{{A}}</td>
<td>{{B}}</td>
<td>{{C}}</td>
{{#each E}}
<td>{{this}}</td>
{{/each}}
</tr>
</table>
{{/each}}
I was expecting it create dynamic header in table HTML attribute, but it did not create anything, if I just reference D and E, it shows be array data in square bracket.
New contributor
user384482 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.