You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The work around to this would be to use the atomic parts of the <td-data-table> and define this in your template with {{ name.first}} {{ name.last }}. However, it would be great if the component property could handle nested objects.
Will allow us to distinguish between these two cases. Also the nested flag should be an optional parameter and by default would be true, as probably most cases would expect name.firstname to mean the object.
…e. closes(#189) (#207)
* support for nested objects + changed detection to OnPush for efficiency
* exported missing interface ITdDataTableSelectEvent
* added refresh functon to API and README
* added example for nested objects
* workaround for angular/components#1825
* fixed tslint
When using the
<td-data-table [data]="data" [columns]="columns" >
it's required you specify your column values as strings like:However, when your JSON is not flat and is structured with nested objects like:
This array of columns does not work.
The work around to this would be to use the atomic parts of the
<td-data-table>
and define this in your template with{{ name.first}} {{ name.last }}
. However, it would be great if the component property could handle nested objects.Issue raised by @kmiyatake in the gitter chat room.
The text was updated successfully, but these errors were encountered: