How do I pass parameters to filter SearchPanes?

How do I pass parameters to filter SearchPanes?

AlessandroBRAlessandroBR Posts: 4Questions: 2Answers: 1

Link to test case: http://live.datatables.net/komoqana/1/edit

Description of problem: I need to customize the panels at each access. How to pass a variable that defines the searchpanes filters?

This question has an accepted answers - jump to answer

Answers

  • AlessandroBRAlessandroBR Posts: 4Questions: 2Answers: 1
    edited July 2022 Answer ✓

    I managed to create an array of numbers.

    var iMostra = JSON.parse("[" + mostra + "]");
    
    columnDefs: [{
                    searchPanes: {
                        show: true,
                        initCollapsed: true
                    },
                    targets: iMostra
                },
                {
                    searchPanes: {
                        show: false
                    },
                    targets: iNaoMostra
                }
            ],
    

    Please close this post.
    Thanks!

    Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

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

    Thanks for posting back!

    Colin

This discussion has been closed.