dynamic searchPanes show/hide

dynamic searchPanes show/hide

Hazem123Hazem123 Posts: 4Questions: 2Answers: 0
edited September 25 in Free community support

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Hello, I am trying to dynamically show and hide particular search panes based on user selection.
So let's assume I have column A,B,C. Somehow the user selects to use search pane A only without showing panes B and C.

is there a way using jQuery where I can select and modify particular pane?
something like:

table.searchPanes(0).show();
table.searchPanes(1).hide();
table.searchPanes(2).hide();

thank you

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    There isn't a built in API for that in SearchPanes, however, you could just use direct DOM manipulation to modify the display property of the pane containers. div.dtsp-searchPanes div.searchPane are the elements you'd want to modify.

    I'm not sure what impact it would have on the layout of the panes though. You might need to add some CSS or modify classes for that.

    Allan

Sign In or Register to comment.