Nested Q-Table from Array #15172
-
|
I want to have a table that opens expanding rows (expanding the rows works now), and the expanded row shows information from an element of the array. So for example, I have the main table defined like this: As you can see, the :rows is my array, which works great. My array layout looks like this... I want the information from the payments element in the array to show in the expanded slot. I'm not sure how to configure the nested table to get that information. This is how I have my nested table configured: How do I configure the nested table to get the data out of that element in the array? is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
it would be from your |
Beta Was this translation helpful? Give feedback.
-
|
Oh... I can include that code from the parent table. Thanks! This is all the code for both tables so far. I will think about how to do what you suggest. |
Beta Was this translation helpful? Give feedback.
-
|
This worked perfectly for my nested table, for anyone looking for this answer. |
Beta Was this translation helpful? Give feedback.


it would be from your
<template #whateverQTableSlotYouUsedUsuallyTheBodySlot="props">the passed props, which you canprops.row. p.s. you should've included that part of the code.