SearchPanes button not working

SearchPanes button not working

didcomsergiodidcomsergio Posts: 15Questions: 4Answers: 0

Hi, i was trying to use a searchpanebutton on my datatable but when i click it, it only appear a "Loading SearchPanes... No SearchPanes" message.

here its a replicate case of my problem: https://live.datatables.net/muweboze/10/edit?html,js,output

picture of my app:

Replies

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,953

    Take a look at this example. It says this:

    The config option should be structured in the exact same way as a normal SearchPanes config.

    The button.searchPanes docs have this:

    By providing an config object buttons.buttons.config the SearchPanes within the button can be customised as desired. The config object is structured in the same way as the SearchPanes config Object is normally.

    Basically that is saying to use the button.searchPanes.config to configure the searchPanes options instead of the searchPanes. Also remove the P searchPanes dom option as you are now using the button. Here is the updated example with these changes.
    https://live.datatables.net/vumiweqe/1/edit

    Kevin

  • didcomsergiodidcomsergio Posts: 15Questions: 4Answers: 0
    edited July 2023

    the previos example works perfectly but when i try to add the text attribute to the button had some issue, the text i wrote its replace by the SearchPane text when clicking.

    How can i keep the text attribute?

    example: https://live.datatables.net/vumiweqe/3/edit?html,js

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    The title is different for the SearchPanes button, as it's dynamic and changes based upon the number of options selected. To change the text there, you need to modify the language settings. This example clearly demonstrates that.

    Colin

Sign In or Register to comment.