framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.06k stars 3.23k forks source link

data table: sticky header #1543

Open MarioVanDenEijnde opened 7 years ago

MarioVanDenEijnde commented 7 years ago

This is a (multiple allowed):

What you did

The table is populated using script (template7) Tried including: http://www.fixedheadertable.com/ https://github.com/jmosbech/StickyTableHeaders

Expected Behavior

Keep the tableheader fixed at the top

Actual Behavior

Does not stick

kivancsahici commented 7 years ago

You can also use CSS position sticky attribute for this purpose. This attribute works on Safari and this was also introduced in Google Chrome, recently. On IE, it's not yet fully implemented.

Demo on codepen

http://codepen.io/SitePoint/pen/hewAv

Browser support

http://caniuse.com/css-sticky/embed/

valnub commented 7 years ago

Pull requests and plugins welcome :-)

See

blikblum commented 7 years ago

I looked into the issue and here are my finds:

Glad if someone can point a why the background is transparent in Chrome so we can create a plugin for F7

Wndworks commented 6 years ago

If you use Vue.js, try this: https://www.npmjs.com/package/vue-floatthead

For me it worked like a charm!