Giter Site home page Giter Site logo

sinrise / tablefixedheader Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19 KB

A simple JS method for creating a table with a fixed header that doesn't use floats or absolute positioning, or any special markup.

License: GNU General Public License v3.0

tablefixedheader's Introduction

Fixed Header Tables

A simple JS method for creating a table with a fixed header that doesn't use floats or absolute positioning, or any special markup. Start with a basic table structure, including a thead element. Widths specified in the thead will be carried into the new "fixed" layout. The scrollbar width is taken into account if the table is larger than the specified height.

  • Initialize:

    • $(string element).tableFixedHeader(int height, bool showFooter);
  • Options:

    • Height

      • optional
      • default: 300px
      • Height of table (body table must have a hiehgt in order to trigger scrolling. If the sum of the height of all the rows is smaller than the specified height, scrolling will not be triggered.
    • ShowFooter:

      • optional
      • default: false
      • Displays a duplicate of the header at the bottom of the table, for tables so tall that you scroll past the header on the page. This is an edge case, as the whole point of having a fixed header is solve scrolling issues. However, there may be a case when you want a limits height table AND want it to scroll with a fixed header.

tablefixedheader's People

Contributors

sinrise avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.