Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 907 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 907 Bytes

jQuery-fixEm

jQuery plugin to fix table headers and or table columns while scrolling table vertically or horizontally

This is a standard jquery plugin.... To use the plugin you need to first create your table with tbody and thead elemnts and then call the function on the selected jquery element..

default options:

{ 'fixedHeader' : true, 'fixedColumn': false, 'scrollX': true, 'scrollY':true, 'width':parseInt($(window).width() * .75) + 'px', 'height': parseInt($(window).height() * .75) + 'px', 'numColumns': 1, 'resizable':false }

you can change these options by passing an options object to the function...

example:

$('#myTableId').fixEm({ fixedHeader: false, scrollY: false });

Here is a JS fiddle that you can experiment with:

https://jsfiddle.net/zachpainter77/qfL5x9tk/

Enjoy..