pageResize Plugin...

pageResize Plugin...

MFGMFG Posts: 12Questions: 5Answers: 0

I am testing various features of DataTables and tried implementing pageResize using
https://datatables.net/blog/2015-04-10

Per the writeup, I included a reference to the Plugin JS file in my HTML and updated the options with pageResize: true.
I also have paging & lengthChange enabled. I am using Bootstrap 4 styling with nowrap in the table.

Sample here: http://live.datatables.net/likeyiri/1/edit

The resize bar does not appear. Any help/suggestions would be appreciated.

Thank You.
Michael.

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,171Questions: 1Answers: 2,589
    Answer ✓

    Hi @MFG ,

    You were missing some bits of the code, and some of the elements needed for it to work. See here, all good now,

    Cheers,

    Colin

  • MFGMFG Posts: 12Questions: 5Answers: 0

    I had re-read the blog post a couple of times to make sure I did not miss anything.

    I did not realize I had to go to the Github link and grab additional CSS & JS code.

    Thank You.

  • colincolin Posts: 15,171Questions: 1Answers: 2,589
    Answer ✓

    Hi @MFG ,

    Yep, the plugin is more for the responsiveness of the page - rather than the line. As it said,

    For the purposes of this demo I've created a resizeable box around the table that you can click and drag, resulting in the table's page length changing automatically to fit the box:

    So that bar is not part of the plugin code. I just took the code from the plugin page itself :)

    Cheers,

    Colin

This discussion has been closed.