View on GitHub

js-fixed-header

Create fixed header in your HTML table.

js-fixed-header

Create fixed header in your table. Write in Vanilla JS.

See demo

Installation

Bower

bower install js-fixed-header

How to use

Create

var fixedTable = new JSFixedHeader(table,options);

Destroy

fixedTable.destroy();

Default options

{
    "top" : 0,
    "zIndex" : 100,
    "type":JSFixedHeader.TYPE_CSS_FIXED    
}