- jquery.fixedheadertable.js
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
First install the grunt:
npm install -g grunt-cli
Obtain all the required modules:
npm install
###Install: After you install the required grunt tasks, you can install the project and check the examples:
grunt
This command will test the code with jshint, install the required files, start the server with port 9001, minify the js files of mousewheel and fixedheadertable and watch the changes of the source files to rebuild the files.
###Minified file (include jquery mousewheel plugin) If you just want to minify the files, you can just run the command
grunt minify
- show -
$('selector').fixedHeaderTable('show');
- hide -
$('selector').fixedHeaderTable('hide');
- destroy -
$('selector').fixedHeaderTable('destroy');
- width - Number - Default: 100%
- height - Number - Default: 100%
- fixedColumns - Number - Default: 0
- footer - Boolean - Default: false
- cloneHeadToFoot - Boolean - Default: false
- autoShow - Boolean - Default: true
- altClass - String - Default: none
- themeClass - String - Default: none
If you aren't using the minified version, be sure to include lib/jquery.mousewheel.js
in your page if you require mousewheel scrolling via fixed columns.