remove empty title row

remove empty title row

haraldharald Posts: 16Questions: 7Answers: 1

I think it is a easy task, but searching over an hour I give up and would be happy for some help.

I created a subtable via serverside. This subtable should only be very basic. I was able to reduce it to the colums and rows. But I am stucked with the title row. Is there any way to remove the empty title line, so that the subtable (child of row) ist directly under the parent row?

My subtable definition is:

let def= {

            data: [
                //... my table data
            ],
            columns: [
               //... my column definition
            ],
            paging:   false,
            ordering: false,
            info:     false,
            bFilter: false,
            // How do I remove the empty title row:
            titlerow: false      // <<-- what do I have to do?
        } 

Thanks Harald

Answers

  • rf1234rf1234 Posts: 3,000Questions: 87Answers: 421

    Just add this initComplete option:

    initComplete: function () {
        $( this.api().table().header() ).hide();
    },
    
Sign In or Register to comment.