Search filter to be in the same row as other page info

Search filter to be in the same row as other page info

trongarttrongart Posts: 222Questions: 51Answers: 0

In this example, I moved the search filter to the left with CSS and dom. However, it moved above the other elements such as info, page etc. How can I move the search filter into the same row as information and page length?

This question has an accepted answers - jump to answer

Answers

  • trongarttrongart Posts: 222Questions: 51Answers: 0

    When the search filter comes after information such as with dom Qrifplt the filter is in the same row, but when the search filter comes first as in the example with dom Qrfiplt it is no longer aligned with the other elements.

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

    I'm not 100% certainly what the layout is that you are looking for I'm afraid, but I think you'll need an extra div which can have a little CSS applied to it to make it a flex box:

    dom: '<"row"Qrfipl>t',
    

    And

    div.row {
      display: flex;
      justify-content: space-between;
    }
    

    http://live.datatables.net/pozawuxu/5/edit

    I doubt that is what you actually want, but it might send you on the right track? If not, can you clarify the layout you want, perhaps with a drawing.

    Allan

  • trongarttrongart Posts: 222Questions: 51Answers: 0

    This is what I was looking for. Thank you!

Sign In or Register to comment.