Slide a page in when drawing it?

Slide a page in when drawing it?

OcenOcen Posts: 3Questions: 2Answers: 0
edited November 2016 in Free community support

I'm trying to cycle through pages of results on a timer, and want a smoother transition. Is it possible to somehow slide in the next page when it gets drawn? Here's my function for the cycling:

setInterval(function() {

        if(table.page() === table.page('last').page()) {
            table.page('first');
        } else {
            table.page('next');
        }
        table.draw('page');
    }, 2000);

Answers

  • allanallan Posts: 63,831Questions: 1Answers: 10,518 Site admin

    No sorry. DataTables doesn't have such an option since it will only have one page or rows in the document at any one time. It would require a change to how the draw mechanisim in DataTables works internally.

    Allan

This discussion has been closed.