uptick/react-keyed-file-browser

Pagination on folderRenderer property ?

Opened this issue · 4 comments

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

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.

Thanks I wanted to avoid that to keep the search functionality.

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.

Okay, I see. You're right, I hope they add it soon.