The ability of DataTables to read arbitrary object properties as a column data source through the columns.data
option is extended to n levels of
objects, through the use of standard Javascript dotted object notation. For example in this example
platform.details.0
refers to the first element of the array "details", of the object "platform",
for each column. Any level of 'dots' can be used.
The example below shows DataTables reading information for the columns of the last three columns of the table from nested object properties.
Name | Age | Position | Office | Start date | Salary |
---|---|---|---|---|---|
Name | Age | Position | Office | Start date | Salary |