Skip to content

How pagination works ? #1399

Answered by pwlinkas
chaouiy asked this question in Q&A
Discussion options

You must be logged in to vote

An approach could be updating the items whenever the user changes the timespan.

timeline.on('rangechanged', function (event) {
     FetchItemsFromSomeAPI(event.start, event.end); // Get only items within the current timespan
     UpdateTimelineItems();
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mojoaxel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1321 on April 21, 2022 09:36.