DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

Make compatible with FixedColumns #7

Closed DataTables closed 10 months ago

DataTables commented 11 years ago

Currently FixedHeader doesn't work with FixedColumns. Its probably not particularly easy to make it compatible given the structure of the two programs at the moment, but it would be good if they could play together (acknowledging possible performance concerns with lots of cloned elements on the page).

DataTables commented 11 years ago

Thinking about this it might not actually be that bad. For FixedColumns to be enabled, the table must be scrolling. This in turn means that the header and footer of the table have been split into separate div elements. These we could flick between fixed and relative positioning, rather than needing to perform a clone.

Makes the code paths a little more complex, but a nice way of doing this.

Fixing the columns with FixedHeader wouldn't be possible, but that would be redundant with FixedColumns also being used anyway...

sokai commented 10 months ago

Think it's done: https://datatables.net/extensions/fixedheader/examples/integration/fixedcolumns.html 👍🏼

AllanJard commented 10 months ago

Certainly is! Thanks for noting this.