I'm thinking about how to design a table component in Angular2 that can show complex data types.
A complex data type can contain the following:
1. Primitives - numbers, strings, etc.
2. Lists - several pieces of data
Also, they can contain inner complex types, (person can have an address that contains several fields and etc), and lists of complex types (basically a sub-table).
When I think about exporting that data, I dont know how can I show types other than primitives. The only idea I get is to put a button in the table cell, that would open a modal that would show whatever data I need, let it be a list, an object, or a list of objects.
How do you think such a problem should be approached from a UX perspective? Until now, the data was only available as a CSV, which makes it easy to show, but complex information was basically unavailable to the user, whereas now, I get a json with all the data I can think of.
Rightfully, I've been suggested to add the requirements to the post:
Basically, we're talking about