bluewatertracks / bwt-datatable

Data table with Polymer 3 support!
GNU General Public License v3.0
42 stars 14 forks source link

Support Nested Properties #42

Closed mastercodekw closed 5 years ago

mastercodekw commented 6 years ago

Example usage: Assuming a user passes data to paper-datatable-card that contains a JSON object, which contains array of addresses, and each address has its own postal code. User can add the following to paper-datatable-column component to show the postal code in the table: property="addresses.work.postalCode"

bhargavkonkathi commented 6 years ago

Hi @mastercodekw,

We can create for one level of nested properties, but what if that nested properties have again some nested properties. In order to avoid this situation, Please use template inside data-column something like this, you will be able to access the required property inside nested properties.

`

`

dhrytsenko commented 5 years ago

Close due to inactivity and proposed solution by @bhargavkonkathi