ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Sticky header #138

Closed yuvalka closed 7 years ago

yuvalka commented 7 years ago

Hi, Is there out-of-the-box way to do sticky header in vue-table? An example of a sticky header to table (didn't work for me for some reason) http://jsfiddle.net/jmosbech/stFcx/

Thanks!

ratiw commented 7 years ago

@yuvalka Nope. According to your sample, they are using JQuery plugin to do that and this might not work because JQuery relies on the DOM which may not be present when the plugin executes. I guess you will have to call the plugin when Vue.js finishes rendering the DOM, which probably be in the ready section.

yuvalka commented 7 years ago

thanks. will try that :)