jQuery Plugin To Create Scrollable HTML Table Table Scroller - Download jQuery Plugin To Create Scrollable HTML Table - Table Scroller

Download jQuery Plugin To Create Scrollable HTML Table – Table Scroller

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin To Create Scrollable HTML Table – Table Scroller, hope it will help you in programming stack.

jQuery Plugin To Create Scrollable HTML Table Table Scroller - Download jQuery Plugin To Create Scrollable HTML Table - Table Scroller
File Size: 7.88 KB
Views Total: 8682
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Table Scroller is a simple-to-use jQuery plugin which helps create vertically and/or horizontally scrollable table with fixed table headers and columns.

How to use it:

1. Include jQuery library and other required resources on the webpage.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="js/tablescroller.js"></script>
3 <script src="js/tablescroller.jquery.js"></script>
4 <link href="css/tablescroller.css" rel="stylesheet"><br type="_moz">

2. Create a container for the scrollable table.

1 <div id="scrollableTable"></div>

3. Initialize the plugin and specify the maximum height/width to make your html table scrollable.

1 $("table").tablescroller({
2   width: 400,
3   height: 300,
4   container: "#scrollableTable",
5   removeOriginal: true
6 });

4. Specify the table row & column to be stuck.

1 $("table").tablescroller({
2   width: 400,
3   height: 300,
4   container: "#scrollableTable",
5   removeOriginal: true,
6   pinnedRows: 1,
7   pinnedCols: 1
8 });

This awesome jQuery plugin is developed by joeantkowiak. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net