brunano21 / angular-4-data-table

An Angular 5 data table, with pagination, sorting, expandable rows, row selection, etc. with basic accessibility support.
MIT License
11 stars 19 forks source link

How to use the table to display complex JSON objects? #46

Open BhanukaRC opened 6 years ago

BhanukaRC commented 6 years ago

{ keyValues: {name: "Tom" , age: "22" }, height: "1.5" } If the JSON looks like this and what if I want to display 'name' property as a column? Entering it like this doesn't work <data-table-column [property]="'keyValues.name'" [header]="'Name'" [sortable]="false">

property field only expects a string!

brunano21 commented 6 years ago

Unfortunately, it's not currently supported.