FixedHeader plugin doesn't work

FixedHeader plugin doesn't work

lortzlortz Posts: 12Questions: 4Answers: 0
edited October 2020 in Free community support

Hello there! I tried to add the FixedHeader plugin to my Datatable by adding the css and js files

<script type="text/javascript" src="https://cdn.datatables.net/fixedheader/3.1.7/js/dataTables.fixedHeader.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedheader/3.1.7/css/fixedHeader.dataTables.min.css"/>

and then by doing:

$(document).ready(function() {
    ...
    fixedHeader: true
    ...
});

but the console says

dataTables.fixedHeader.min.js:29 Uncaught TypeError: Cannot set property 'FixedHeader' of undefined

Why is that?

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.