itables icon indicating copy to clipboard operation
itables copied to clipboard

Immobilizing columns

Open CarlaFernandez opened this issue 2 years ago • 1 comments

Hello, I was wondering if there is any way to immobilize certain columns or the header from the rendered itable, just as you can do in Excel. It would be really useful to visualize a large dataframe. Thank you!

CarlaFernandez avatar Nov 27 '23 10:11 CarlaFernandez

Hello @CarlaFernandez , thanks for asking!

Well datatables.net, the javascript library that provides the interactivity, does have support for the fixed columns, cf. https://datatables.net/extensions/fixedcolumns/examples/initialisation/left_right_columns.html

Unfortunately these fixed columns are provided through the fixedcolumns extension, and at the moment itables does not have support for the extensions.

I don't have plans to add support for these in the near future, but nevertheless please this issue open, it might come at some point!

mwouts avatar Nov 27 '23 22:11 mwouts

This is now possible with itables==2.0! See the example here: https://mwouts.github.io/itables/extensions.html#fixedcolumns

mwouts avatar Mar 16 '24 16:03 mwouts