Readme.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # FixedHeader
  2. At times it can be useful to ensure that column titles will remain always visible on a table, even when a user scrolls down a table. The FixedHeader plug-in for DataTables will float the 'thead' element above the table at all times to help address this issue. The column titles also remain click-able to perform sorting. Key features include:
  3. * Fix the header to the top of the window
  4. * Ability to fix the footer and left / right columns as well
  5. * z-Index ordering options
  6. # Installation
  7. To use FixedHeader, first download DataTables ( http://datatables.net/download ) and place the unzipped FixedHeader package into a `extensions` directory in the DataTables package. This will allow the pages in the examples to operate correctly. To see the examples running, open the `examples` directory in your web-browser.
  8. # Basic usage
  9. FixedHeader is initialised using the `$.fn.dataTable.FixedHeader()` object. For example:
  10. ```js
  11. $(document).ready( function () {
  12. var table = $('#example').dataTable();
  13. new $.fn.dataTable.FixedHeader( table );
  14. } );
  15. ```
  16. # Documentation / support
  17. * Documentation: http://datatables.net/extensions/FixedHeader/
  18. * DataTables support forums: http://datatables.net/forums
  19. # GitHub
  20. If you fancy getting involved with the development of FixedHeader and help make it better, please refer to its GitHub repo: https://github.com/DataTables/FixedHeader