All Projects → mkoryak → Floatthead

mkoryak / Floatthead

Licence: mit
Fixed <thead>. Doesn't need any custom css/html. Does what position:sticky can't

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Floatthead

react-sticky-headroom
A React Component to hide a Header using CSS sticky position
Stars: ✭ 22 (-98.16%)
Mutual labels:  scrolling, header, sticky
Paroller.js
Parallax scrolling jQuery plugin
Stars: ✭ 535 (-55.16%)
Mutual labels:  scrolling, jquery
Gijgo
Gijgo - Free Javascript Controls
Stars: ✭ 424 (-64.46%)
Mutual labels:  table, jquery
Sticky State
StickyState is a high performant module making native position:sticky statefull and polyfilling the missing sticky browser feature
Stars: ✭ 692 (-41.99%)
Mutual labels:  scrolling, sticky
Jquery Lockfixed
jQuery lockfixed plugin
Stars: ✭ 69 (-94.22%)
Mutual labels:  scrolling, jquery
Tabulator
Interactive Tables and Data Grids for JavaScript
Stars: ✭ 4,329 (+262.87%)
Mutual labels:  table, jquery
Scrolldir
0 dependency JS plugin to leverage scroll direction with CSS ⬆⬇ 🔌💉
Stars: ✭ 679 (-43.08%)
Mutual labels:  scrolling, sticky-headers
react-sticky-header
🍯 A sticky header for React.js
Stars: ✭ 55 (-95.39%)
Mutual labels:  header, sticky
Jquery Rslitegrid
Input tabular data with your keyboard
Stars: ✭ 5 (-99.58%)
Mutual labels:  table, jquery
Ng Sticky
Angular 4 sticky, have header or any component sticky easy to use.
Stars: ✭ 25 (-97.9%)
Mutual labels:  sticky, sticky-headers
Vue2 Datatable
The best Datatable for Vue.js 2.x which never sucks. Give us a star 🌟 if you like it! (DEPRECATED. As I, @kenberkeley, the only maintainer, no longer works for OneWay. Bugs may be fixed but new features or breaking changes might not be merged. However, it's still the best in my mind because of its extremely flexible usage of dynamic components)
Stars: ✭ 867 (-27.33%)
Mutual labels:  table, sticky
Hc Sticky
JavaScript library that makes any element on your page visible while you scroll.
Stars: ✭ 375 (-68.57%)
Mutual labels:  sticky, jquery
Stickyheaderlistview
打造炫酷列表之 StickyHeaderListView:标题渐变、吸附悬浮、筛选分类、动态头部等
Stars: ✭ 2,820 (+136.38%)
Mutual labels:  header, sticky
Pagepiling.js
pagePiling plugin by Alvaro Trigo. Create a scrolling pile of sections. http://alvarotrigo.com/pagePiling/
Stars: ✭ 3,993 (+234.7%)
Mutual labels:  scrolling, jquery
Fullpage.js
fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple
Stars: ✭ 32,974 (+2663.96%)
Mutual labels:  scrolling, jquery
Jquery.localscroll
Animated anchor navigation made easy with jQuery
Stars: ✭ 624 (-47.69%)
Mutual labels:  scrolling, jquery
Android-sticky-navigation-layout
android sticky navigation layout
Stars: ✭ 17 (-98.58%)
Mutual labels:  sticky, sticky-headers
react-cool-virtual
😎 ♻️ A tiny React hook for rendering large datasets like a breeze.
Stars: ✭ 1,031 (-13.58%)
Mutual labels:  table, sticky-headers
Animatescroll.js
A Simple jQuery Plugin for Animating Scroll
Stars: ✭ 708 (-40.65%)
Mutual labels:  scrolling, jquery
Sticky Nav
A jQuery plugin make the navbar sticky, smart anchor link highlighting, smooth scrolling. Simple and powerful.
Stars: ✭ 21 (-98.24%)
Mutual labels:  sticky-headers, jquery

jquery.floatThead

gif showing plugin in action

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.

Install

Package managers

npm install floatthead
bower install floatThead

Download code

Latest Release (zip)

Via CDN

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

<!-- Latest compiled and minified JavaScript -->
<script src="https://unpkg.com/floatthead"></script>
<script>
  $(() => $('table').floatThead());
</script>

For java people

Webjar

Wrappers

vuejs component by @tmlee

angularjs directive by @brandon-barker

yii2 framework wrapper by @bluezed

Why not just use position:sticky?


You probably should! This plugin was created years before that existed. There are still a few reasons why you might want to use this plugin:

  • Your code runs in the real world, where some browsers don't support position: sticky.
  • Any kind of non-standard scroll parent scenario, where the thing that you scroll with is not supported by position: sticky.
    • Your table's scroll parent isn't the body, but the body is what scrolls and you can't change this.
    • Your table scrolls horizontally within a container, but vertically within the page.
  • Your sticky top position is dynamic, or you want to know when the header becomes sticky and you don't want to write code to do this.
  • You don't want to learn these newfangled CSS things, you want a proven solution that works and uses jQuery, the greatest thing ever!

Things this plugin does:


  • In prod @ big corporations and opensource projects. Maintained. See open issues.
  • Works on tables within a scrollable container or whole window scrolling
  • Works with responsive table wrappers
  • Works with dynamically hidden/added/removed columns
  • Does not clone the thead - so your events stay bound
  • Does what position:fixed cannot do (and on browsers that do not support it)
  • Does not mess with your styles, and doesnt require any css (see fixed vs absolute position modes)
  • 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.
  • RTL is not really supported - it might work in overflow scrolling more, if you are lucky. Expects dir on html element.
  • Layout issues resulting from document zoom not being 100% are not supported.

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.

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 ?

Ctrl O

  • Ctrl O provides simple and innovative products to help an organization's business processes. Linkspace, its flagship product, helps share information between teams and individuals, in a simple and effective manner.

WheresTheGig.com

  • A free service for the musical community

Google

  • Internally, I happen to know...

tld-list.com

  • The first table you see.

Samsung

  • For the internet of things!

Around 153,000 hits on github code search

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].