Giter Site home page Giter Site logo

adam1985 / floatthead Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mkoryak/floatthead

0.0 2.0 0.0 1.83 MB

fixed <thead>. Doesn't need any custom css/html

Home Page: http://mkoryak.github.io/floatThead/

License: MIT License

CoffeeScript 3.41% JavaScript 96.59%

floatthead's Introduction

jquery.floatThead 1.4.5

woot

#Documentation & Examples: http://mkoryak.github.io/floatThead/

Float the table header on scroll. No changes to your HTML/CSS are required, it just works. Supports floating the header while scrolling within the window or while scrolling within a container with overflow. Supports responsive tables.

๐Ÿ˜ปMy cat loves it๐Ÿ˜ป

Install

Package managers

npm install floatthead
bower install floatThead

Download code

Latest Release (zip)

Via CDN

http://cdnjs.com/libraries/floatthead/
http://www.jsdelivr.com/#!jquery.floatthead
https://unpkg.com/floatthead

For java people

Webjar

Wrappers

angularjs directive by @brandon-barker

yii2 framework wrapper by @bluezed

Things this plugin does:


  • Works on tables within a scrollable container or whole window scrolling
  • Works with responsive table wrappers
  • Works with dynamically hidden/added/removed columns
  • Doesn't clone the thead - so your events stay bound
  • Doesn't mess with your styles, and doesnt require any css
  • Works with border-collapse variants, weird margins, padding and borders
  • Works with libs like datatables, perfect-scrollbar, bootstrap3, and many more
  • Header can be floated with position:absolute which adds a wrapper, or position:fixed which does not. Both have their pros and cons. By default the best option is chosen based on your configuration

Things this plugin does NOT do:


  • Does not float the footer
  • Does not let you lock the first column like in excel
  • Safari and mobile safari are not supported. It might work, or it might not, depending on your markup and safari version.

Common Pitfalls

If you use css and html best practices, this plugin will work. If you are stuck in 1999, you better read the faq.

How to get help with the floatThead

All issues should be reported through github. Coffee/Beer donations are welcome ;)

Requirements:

  • jQuery 1.8.x or better (1.9 compliant) (or jQuery 1.7.x and jQuery UI core)

Supported Browsers:

Change Log

see CHANGELOG.md

Who is using floatThead ?

You are still reading this?

Like clicking on things? Check out these great domains:

License

MIT

floatthead's People

Contributors

mkoryak avatar jurko-gospodnetic avatar rgeerts avatar rshah88 avatar jakesjews avatar jeltef avatar vperron avatar ithielnor avatar adam187 avatar billsaysthis avatar cantin avatar xaopt avatar hannahb0t avatar clyfe avatar robinpoort avatar selckin avatar jelhan avatar mhwlng avatar weekens avatar

Watchers

James Cloos avatar Max 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.