Slide a page in when drawing it?
Slide a page in when drawing it?
Ocen
Posts: 3Questions: 2Answers: 0
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);
This discussion has been closed.
Answers
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