Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

How to show nested objects table #23

Open
@smarthingsolutions

Description

Hello,

how can i use v2 table to print a nested objects table.
let's say i got from backend (laravel controller) a list of products with their sales
(product->with('sales')->get()), and each product has a different number of sales.

i want to show them like this : ( sales table inside each product row)

 id      |            Product       |                sales                         |   

  1      |           Product_1      |   id      |      sale        |     price

                                       1        |    sale_1        |    price_1                                                                              
                                       2        |    sale_2        |    price_2

  2      |           Product_2      |   id      |      sale        |     price

                                       3        |    sale_3        |    price_3                                                                                
                                       4        |    sale_4        |    price_4
                                       5        |    sale_5        |    price_5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions