I am designing a LWC component that looks like below:
Here, I will use an Apex Wrapper to get the data for this table.
The wrapper stores the following info:
- Account Id [ex - Id of Account 1]
- Pattern Id [ ex - Id of Pattern 1]
- Pattern Name [ Name - Patter 1 ]
- Start Week [ ex July 10th ]
The above data is stored in a custom object that supports this UI. If no patterns is returned then I leave the cell blank as you see for Account 2 AND July 10. So that user can search the pattern using the lookup filter and set it here.
I am thinking to use a data table to implement this. However, what I am not sure about is how can I use a lookup component inside a data table? Is this even possible any better way to do it? PLease suggest if even should be using a datatable in this case or not.