{hero}

fixedHeader.footerOffset()

Since: FixedHeader 3.1.0

Get / set the fixed footer's offset.
Please note - this property requires the FixedHeader extension for DataTables.

Description

This method provides the ability to control the offset of the table's fixed footer. This offset can be useful if you have an element floating at the bottom of a page (a set of common navigation links for example) and you wish to have the footer stick to the top of that element rather than to the bottom of the page.

This method, and its counterpart control for the header, fixedHeader.headerOffset(), can be useful for cases where that offset can change dynamically (a fixed element that grows on mouse over for example).

Please be aware that the footer's position will immediately update once this method has been executed, if required by the page's scrolling position. No other update method is required.

Types

function fixedHeader.footerOffset()

Description:

Get the fixed footer's offset.

Returns:

The current footer offset

function fixedHeader.footerOffset( offset )

Description:

Set the fixed footer's offset

Returns:

The DataTables API for chaining

Example

Set the footer's offset:

var table = $('#myTable').DataTable();

table.fixedHeader.footerOffset( 10 );

Related

The following options are directly related and may also be useful in your application development.