Moving the Search Bar

Moving the Search Bar

CrimsonGTCrimsonGT Posts: 7Questions: 4Answers: 0

Is a way to move the search bar to the left and above the tabs rather than below them? I am reading over the page about sdom but haven't been able to figure out how to use it properly yet. With the examples I found I can move it to the bottom right but not to the top left above the tabs.

This question has an accepted answers - jump to answer

Answers

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    What "tabs" are you referring to?

  • allanallan Posts: 63,759Questions: 1Answers: 10,510 Site admin
    Answer ✓

    The dom option will only let you move the DataTables elements around inside its container element. It will not let you insert them into other parts of the document.

    You have two options:

    1. Create your own text box and assign event handlers (keyup etc) that will call the search() method of the table.
    2. Move the default search box to wherever you need, using jQuery or DOM methods, in the document after the table has been created (initComplete).

    Allan

This discussion has been closed.