I am trying to create multiple tables based on values from an object.
[
{
itemFolder: "personal"
itemLocation: "right infront of me"
itemName: "macBook"
itemNotes: "Space Gray"
},
{
itemFolder: "professional"
itemLocation: "behind me"
itemName: "Dell"
itemNotes: "Black"
},
{
itemFolder: "student"
itemLocation: "left of me"
itemName: "HP"
itemNotes: "silver"
},
{
itemFolder: "worker"
itemLocation: "right of me"
itemName: "Lenovo"
itemNotes: "black"
},
{
itemFolder: "worker"
itemLocation: "behind me"
itemName: "HP"
itemNotes: "silver"
},
// around 20 more items
]
I want to create several different tables, where the item location, name, and notes are displayed, and the tables are filtered/centered around what is inside of itemFolder
. How would I do that?
For example:
Worker:
itemlocation: itemName:
right of me Lenovo
behind me HP
and then for professional, student, and so on.