1 <?xml version="1.0" encoding="UTF-8" ?>
2 <dt-option library="FixedHeader">
3 <name>fixedHeader.headerOffset</name>
4 <summary>Offset the table's fixed header</summary>
7 <default type="integer" value="0"/>
11 Set the offset (in pixels) of the header element's offset for the scrolling calculations.
16 Many web-pages and apps use a navigation element that has fixed positioning applied to it at the top of the page to to provide quick access to common functions and links for an end user. This needs to be accounted for when using FixedHeader so the offset caused by the fixed element doesn't interrupt the correct positioning of the fixed header.
18 This parameter provides a method that you can use to inform FixedHeader that an offset should be applied, and what that offset should be.
21 <example title="Set the header offset to a known value"><![CDATA[
23 $('#example').DataTable( {
31 <example title="Use jQuery to calculate a required offset"><![CDATA[
33 $('#example').DataTable( {
35 headerOffset: $('#navMenu').outerHeight()
41 <related>fh-init fixedHeader.footerOffset</related>
42 <related>fh-api fixedHeader.headerOffset()</related>