Callback or Event trigger for SearchBuilder button

Callback or Event trigger for SearchBuilder button

Jack TingJack Ting Posts: 14Questions: 3Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: Is there a callback for hook action after SearchBuilder button show the popup window of SearchBuilder ?

I need it for making the SearchBuilder popup a draggable window.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583
    Answer ✓

    There isn't unfortunately, but you can do something like this here. This is just using the class of the form to make it draggable,

    Colin

  • Jack TingJack Ting Posts: 14Questions: 3Answers: 0

    OK,
    It's really helpful.

    Thanks a lot.

  • Jack TingJack Ting Posts: 14Questions: 3Answers: 0

    wait, what is the following for

        editor.one('close', function (e) {
            $(e.target.dom.wrapper.parentElement).css({ "left": "auto", "top": "auto" });
        });
    

    there's no variable editor.

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    Ah - just a cut&paste problem, please just remove those lines, it behaves as expected without - see here. Apologies for the confusion,

    Colin

  • Jack TingJack Ting Posts: 14Questions: 3Answers: 0

    OK, got it.

Sign In or Register to comment.