I used this example to get the searchPanes to be on the left of the DataTables, stacking the panes. However, I've been unable to resize one pane without affecting the other one. Any guidance on this would be great.
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
I meant a live example, with steps to reproduce, as that helps understand the issue. Would you be able to modify this to demonstrate the issue, please.
Gotcha, I've updated the live example. For the search panes "Position" and "Office", is there a way to increase the height of "Position" but not "Office" search pane.
CSS evenly splits the search pane between the # of search panes.
The height is being defined by flex box, so you need to use flex-basis to alter the height of a pane. You can pick it out using a suitable CSS selected - e.g.
@saphal - can you expand that statement, please? What do you mean by "only limited search panes"? There are many examples, it would be worth looking at those to see if any of them match your requirement.
Answers
Hi @YoDavish ,
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Ah sorry, here is a snippet of the code
Hi @YoDavish ,
I meant a live example, with steps to reproduce, as that helps understand the issue. Would you be able to modify this to demonstrate the issue, please.
Cheers,
Colin
Hello @colin,
Gotcha, I've updated the live example. For the search panes "Position" and "Office", is there a way to increase the height of "Position" but not "Office" search pane.
CSS evenly splits the search pane between the # of search panes.
The height is being defined by flex box, so you need to use
flex-basis
to alter the height of a pane. You can pick it out using a suitable CSS selected - e.g.http://live.datatables.net/jijepumo/4/edit
Allan
how to have only limited search panes in a data table
@saphal - can you expand that statement, please? What do you mean by "only limited search panes"? There are many examples, it would be worth looking at those to see if any of them match your requirement.
Colin
Hi @davidjmorin ,
You want to set
columns.searchPanes.show
for the columns that you want to display.Thanks,
Sandy
@sandy Thank you . Got it working