Header on child table.

Header on child table.

dpanscikdpanscik Posts: 202Questions: 47Answers: 0

Here is a link test case;
https://live.datatables.net/guwafemu/536/edit

What is the easiest way to add headers to a child table? The child table for this test case does not have headers.

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    You can add the header HTMl syntax to the table strung here:

    var table = $('<table class="display childGrid" width="100%"/>');
    

    Easier might be to use columns.title to set the header strings.

    Kevin

  • dpanscikdpanscik Posts: 202Questions: 47Answers: 0
    edited July 2

    title: 'My column title'

    is what I was looking for.

    I was mistakenly using label instead I should have been using title.

    Thank you.

Sign In or Register to comment.