FixedHeader not activating

FixedHeader not activating

farawaypressfarawaypress Posts: 9Questions: 4Answers: 0

Link to test case: https://www.comichron.com/monthlycomicssales/1987/1987-08Diamond.html
Debugger code (debug.datatables.net): ogimah
Error messages shown: None
Description of problem:

I made changes to my Javascript and FixedHeader is no longer triggering properly. Not too knowledgeable in JS so I'm assuming I wrote it wrong, but the debugger seems to say it knows FixedHeader=True.

$(document).ready( function () {
        $('#Top300Comics').DataTable( {
     responsive: {
        details: {
            display: $.fn.dataTable.Responsive.display.childRowImmediate
        }
    }, 
            fixedHeader: true,
            "lengthMenu": [ [25, 50, 100, -1], [25, 50, 100, "All"] ]
        });
} );

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586
    Answer ✓

    You already have a fixed header (your banner with the Comichron logo), so you need to offset that. These two examples, here and here, should get you going,

    Colin

  • farawaypressfarawaypress Posts: 9Questions: 4Answers: 0

    Thanks very much — that did the trick!

This discussion has been closed.