Is it possible to nest ngx-datatables within another ngx-datatable? For example, can a separate ngx-datatable be added within a column of another datatable?
Here is my attempt:
rows = [
{
"name": "Ethel Price",
"gender": "female",
"company": "Johnson, Johnson and Partners, LLC CMP DDC",
"age": 22
},
{
"name": "Claudine Neal",
"gender": "female",
"company": "Sealoud",
"age": 55
},
{
"name": "Beryl Rice",
"gender": "female",
"company": "Velity",
"age": 67
},
{
"name": "Wilder Gonzales",
"gender": "male",
"company": "Geekko"
}] ;
<ngx-datatable class="table-bordered schedule-work-grid" [columnMode]="'force'" [rowHeight]="'auto'" [headerHeight]="150"
*ngIf="locations.length > 0" [rows]="rows">
<ngx-datatable-column name="Name"></ngx-datatable-column>
<ngx-datatable-column>
<template>
<ngx-datatable class="table-bordered schedule-work-grid" [columnMode]="'force'" [rowHeight]="'auto'" [headerHeight]="150"
*ngIf="locations.length > 0" [rows]="rows">
<ngx-datatable-column name="Name"></ngx-datatable-column>
</ngx-datatable>
</template>
</ngx-datatable-column>
<ngx-datatable-column name="Age"></ngx-datatable-column>
</ngx-datatable>
Can anyone confirm if nesting datatables is supported and if so, how can I accomplish this?
Edit
I am looking to create the following structure:
https://i.sstatic.net/gjUlN.png
As far as I know, colspan and rowspan functionality are not currently available in ngx-datatable. Any suggestions on how I can proceed with implementation would be greatly appreciated.