Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82132

Display only when table header is not visible ( top header )

$
0
0
With FixedHeaders i wanted to have the cloned header only to show when the original header was not visible.

My config is top headers only

I just updated the function in the plugin : _fnScrollFixedHeader ( around line 588 )

// Lines where this._fnUpdateCache( oCache, 'sPosition', "absolute", 'position', nTable.style ); is fired
this._fnUpdateCache( oCache, 'sDisplay', "none", 'display', nTable.style );

// Lines where this._fnUpdateCache( oCache, 'sPosition', 'fixed', 'position', nTable.style ); is fired
this._fnUpdateCache( oCache, 'sDisplay', "block", 'display', nTable.style );

Thought i should share if someone is searching something similar

Stefan :)

Viewing all articles
Browse latest Browse all 82132

Trending Articles