General developer forum

Pagination inside filepicker listing

 
Picture of Mohit Shah
Pagination inside filepicker listing
 

Hello Friends

I am developing a custom repository plugin. I have created a plugin and currently working on displaying data. 

My question is, how can we implement pagination on scroll. My api provides data on pagination-wise. So need to implement pagination, like initially first page data is loaded inside filepicker listing, when user scrolls down, next page data is loaded and so on. I found some dynload property, ajax option for repository plugin constructor, but not working.

I am new to moodle so can anyone please help on this.

Thanks & Regards
 
Average of ratings: -