How to add two subtables to the Datatable row?

How to add two subtables to the Datatable row?

KoldreeKoldree Posts: 4Questions: 1Answers: 0
edited May 2020 in Free community support

We have an example from Datatable team how to add subtable to a row here: https://datatables.net/examples/api/row_details.html

It could be done with selecting a row and adding new content with row.child() function.
I successfully did this, and now my table looks like:

<tbody>
  <tr class="main-row">
  <tr class="sub-row">
</tbody>

How I can add a subtable after a sub-row?
I'm trying to select sub-row with jQuery selector and create a data table row from it with table.row('.sub-row') - but it gives me and empty value, like:

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.