DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

Fixed header not working for me #73

Closed mayeaux closed 8 years ago

mayeaux commented 8 years ago

Let me know if I'm missing something. Most of DataTables seems to be working (and is super awesome), but the FixedHeader isn't.

Here's my public assets:

<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="/bower_components/DataTables/media/css/jquery.DataTables.min.css">
<link rel="stylesheet" href="/stylesheets/style.css">
<script src="/bower_components/jquery/dist/jquery.min.js"></script>
<style type="text/css"></style>
<script src="/bower_components/bootstrap/dist/js/bootstrap.min.js">     </script>
<script src="/bower_components/DataTables/media/js/jquery.dataTables.min.js">     </script>

And is invoked as:

      $('#myTable').DataTable({
          fixedHeader: true
      });

Like I said, most of the sorting functionality etc works fine, but not the fixedHeader. Am I messing something up? Thanks!

mayeaux commented 8 years ago

Lol it's been a long day. Didn't realize FixedHeader was an added plugin. Working now, thanks.