I want to display 3 different tables in a specific way on one page(See Tables Overview).
The tables are structured the following way:
Datastructure table A: id1,...
Datastructure table B: id1, id2,...
Datastructure table C: id1, id2, id3,...
The tables should filter results from A to C. In the beginning only table A shows data. After you click on a row in table A, then table B should only show results that have the same id1 as table A (A.id1 = B.id1). When you select a row in table B, then C should also only show matching results( .filter(e => e.id1 == bID1 && e.id2 == bID2 ).
The records are jsonObjects in an Array(per Table).
What would be a good way to implement this behavior?
I don't necessarily need the code, just some thoughts how to tackle this problem.
What I tried/used:
- data stored in stores
- I reused my tableComponent for all tables -> Should i create a component for each table?
Thank you!