Freeze Headers Columns In Table jQuery MultiFreezer - Download Freeze Multiple Headers And Columns In Table - jQuery MultiFreezer

Download Freeze Multiple Headers And Columns In Table – jQuery MultiFreezer

Posted on

This time I will share jQuery Plugin and tutorial about Freeze Multiple Headers And Columns In Table – jQuery MultiFreezer, hope it will help you in programming stack.

Freeze Headers Columns In Table jQuery MultiFreezer - Download Freeze Multiple Headers And Columns In Table - jQuery MultiFreezer

File Size: 5.12 KB
Views Total: 21888
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

MultiFreezer is an easy-to-use jQuery sticky table plugin which keeps multiple header rows and table columns while scrolling through the html table.

How to use it:

1. Include the jQuery MultiFreezer plugin’s stylesheet multifreezer.css and JavaScript file multifreezer.js on the web page.

1 <link href="/path/to/multifreezer.css" rel="stylesheet">
2 <script src="/path/to/jquery.min.js"></script>
3 <script src="/path/to/multifreezer.js"></script>

2. Initialize the plugin using HTML data attributes:

  • data-scroll-height: scroller height, if null, common wrapper height() will be used
  • data-cols-number: number of columns to freeze, if null, will be autodetected from <TH>
01 <table class="table-freeze-multi"
02        data-scroll-height="300"
03        data-cols-number="2">
04  
05   <thead>
06     <tr>
07       <th>Firstname</th>
08       <th>Lastname</th>
09       <th>Email</th>
10       ...
11     </tr>
12   </thead>
13  
14   <tbody>
15     <tr>
16       <td>John</td>
17       <td>Doe</td>
18       <td>john@example.com</td>
19     </tr>
20     <tr>
21       <td>Mary</td>
22       <td>Moe</td>
23       <td>mary@example.com</td>
24     </tr>
25     <tr>
26       <td>July</td>
27       <td>Dooley</td>
28       <td>july@example.com</td>
29     </tr>
30     ...
31   </tbody>
32  
33 </table>

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

source : jqueryscript.net