Pagination on folderRenderer property ?
Opened this issue · 4 comments
flavienbwk commented
Hello,
I would like to be able to paginate the directories I transmit to my React Keyed File Browser component. Is this component able to handle pagination ?
Thanks
klm-lab commented
HI @flavienbwk
I don't think they have that yet.
You can simply fetch the paginate data form server and update the state, files: []
when changing page, Get the paginate data with some extras meta data such as total, prevPage, nextpage .... and do the tricks.
flavienbwk commented
Thanks I wanted to avoid that to keep the search functionality.
flavienbwk commented
If only the folderRenderer prop would return an iteration number in addition to the folder as a callback argument, this library might be used to perform pagination.
klm-lab commented
Okay, I see. You're right, I hope they add it soon.