Skip to content

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

Notifications You must be signed in to change notification settings

zachpainter77/jQuery-fixEm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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..

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published