Is it possible to apply the scrollY feature to the only?

Is it possible to apply the scrollY feature to the only?

TocacarTocacar Posts: 4Questions: 1Answers: 0

I have a datatable with individual column search inputs at the bottom (as per the tutorial). I want to make the table vertically scrollable as well, but the search inputs are included in the scrollable area and scroll out of view.

Is it possible to to apply the scroll only to the table's body, and not the footer (like the header row stays static).

Thanks!

Answers

  • TocacarTocacar Posts: 4Questions: 1Answers: 0

    Maybe the answer is https://www.datatables.net/extensions/fixedheader/? I'll check it out.

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin

    Use the column().footer() method to get the footer cells, regardless of scrolling.

    Allan

  • TocacarTocacar Posts: 4Questions: 1Answers: 0

    Hi Allan

    Thanks for your reply. I was wanting to leave the footer row static when scrolling (so it doesn't disappear from view), like the header row stays static and doesn't disappear upwards when scrolling down.

    How can I use column().footer() to make it stay still on the page?

This discussion has been closed.