Skip to content

A simple jquery plugin to freeze header row in html table.

License

Notifications You must be signed in to change notification settings

fastbolt/freezeheader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.freezeheader

A simple jquery plugin to freeze header row in html table.

Installation

Manual installation

Include script after the jQuery library (unless you are packaging scripts somehow else):

<script src="/path/to/jquery.freezeheader.js"></script>

Using bower package manager

The Plugin is already prepared for installation using bower package manager.

The installation is as simple as:

Add the Repository definition to your bower dependencies

    {
        "dependencies" : {
            "freezeheader" : "https://github.com/dhirtzbruch/freezeheader/archive/master.zip"
        }
    }

Install Plugin

bower install freezeheader

Usage

Create a table with fixed header in the top browser:

        $(document).ready(function () {
            $("#tableid").freezeHeader();
        })

Create a table with fixed header and scroll bar:

        $(document).ready(function () {
            $("#tableid").freezeHeader({ height: 300 });
        })

Demo

http://laertejjunior.github.io/freezeheader/

Development

  • Source hosted at GitHub
  • Report issues, questions, feature requests on GitHub Issues
  • Original Source by Laerte Mercier Junior hosted at GitHub

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Authors

About

A simple jquery plugin to freeze header row in html table.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%