4th Level Nesting with Nested Tables

4th Level Nesting with Nested Tables

simplysethsimplyseth Posts: 3Questions: 2Answers: 0

Is there an example somewhere of 4th level nesting with nested tables.

I have well formatted JSON data that goes down to a 4th level of nesting.

{
  "data": [
      "account": "RIQP01"
       "block_devices" [
        {
        "delete_on_terminate": true,
        "name": "/dev/sda1",
        "status": "attached"}
        ,{
      "delete_on_terminate": true,
      "name": "/dev/sdb",
      "status": "attached"
        }]
     },
"launch_time": "2014-03-18T00:46:07.000Z",
  "monitoring_state": "disabled",
  "persistent": "-",
"interfaces": [
    {
      "description": "Primary network interface",
      "id": "nunya",
      "mac_address": "06:9e:6b:06:44:5c",
      "private_ip_addresses": [
        {
          "primary": true,
          "private_ip_address": "172.28.21.11"
        }
      ],
      "status": "in-use"
    }
  ],
}

I'm trying to see if it would be possible to do nested tables or nested <ul> since block_devices is a list of dictionaries and interfaces is also a list of dictionaries and interfaces.private_ip_addresses is also a list of dictionaries.

So if it were possible, I wanted to see how.

I have auto generated columns definition as shown in the link below:

https://jsfiddle.net/wsasuvk7/

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    Answer ✓

    DataTables does not currently support nested tables. It can read the nested information and you could even create a nested table in a single cell, but it cannot show additional rows for nesting.

    Allan

  • simplysethsimplyseth Posts: 3Questions: 2Answers: 0
    edited April 2015

    Great.
    Then I guess the next option is to create 3 tables.
    Thx.

This discussion has been closed.