Searchpane and very wide tables
Searchpane and very wide tables

I have a use case that requires a very wide datatable (> 35 columns). I only need a search pane for one of the columns. The table is way wider than most screens and when I bring up search panes (using the Buttons extension) the pane is off to the left and off the screen. I can find no way to center the pane in the window.
Adding a class to the container does not seem to allow for centering the panes - they always stay left:
oTable.searchPanes.container().addClass('sp_class');
.sp_class { width:800px;justify-content: center !important; }
Any help would be appreciated! See attached image.
Answers
Hi @runger
Take a look at the
searchPanes.layout
option. You can set it tocolumns-1
and then each pane will take the full width of the container.Take a look at this example.
Thanks,
Sandy