Child rows (show extra / detailed information)

Child rows (show extra / detailed information)

alang2205alang2205 Posts: 18Questions: 11Answers: 0

Example code: https://datatables.net/examples/api/row_details.html
Hi can someone please provide me an example on how should the code should look like if i want to do something as the child row example code if i do not want to use AJAX?? using only data from html directly

Answers

  • kthorngrenkthorngren Posts: 21,344Questions: 26Answers: 4,954

    There really isn't a difference. However the data in the example is using objects with columns.data. With DOM sourced tables the data is typically arrays. In the format function instead of using d.name you would use d[0] to access the data in column 0 (the Name column).

    Kevin

Sign In or Register to comment.