Some of my columns in a HandsoneTable created using Angular directives are not rendering when I try to use an array as the data source with common array notation (name[0]
). I'm unsure if this is supposed to work like this or if I am doing something wrong.
The data source looks like this:
$scope.data = [
{
'name': ['Bob', 'Bobson'],
'email': '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddbfb2bf9daebcb0adb1b8f3beb2b0">[email protected]</a>'
},
{
'name': ['John', 'Johnson'],
'email': '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3852575056784b595548545d165b5755">[email protected]</a>'
}
];
Here is my template setup:
<div ng-app="Test">
<div ng-controller="tableCtrl">
<hot-table datarows="data">
<hot-column data="name[0]"></hot-column>
<hot-column data="name[1]"></hot-column>
<hot-column data="email"></hot-column>
</hot-table>
</div>
</div>
You can view a simple example here: https://jsfiddle.net/9qzo3wnv/4/