Can't find docs on Scroller Extension's event

Can't find docs on Scroller Extension's event

mending3mending3 Posts: 16Questions: 9Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

I want to use a given event to increase an integer variable while leveraging (ajax) server side

for example if the scroll reaches the lowermost, it re fetches ajax data. it goes so on and so forth until no data is received

code example:

let page = 1
$('#my-table').DataTable({
    scroller: true,
    ajax: `${apiUrl}/mydata?page=${page}`
})

AFAIK, it's all doable with such events

Answers

  • colincolin Posts: 12,986Questions: 0Answers: 2,211

    I'm not too clear what you're looking for, but Scroller is compatible with serverSide - so that will keep requesting data on each scroll until the end of the data set. It's not driven by events, but by the user's scrolling of the table.

    Colin

Sign In or Register to comment.