Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Pagination on folderRenderer property ? #118

Open
flavienbwk opened this issue Jul 6, 2020 · 4 comments
Open

Pagination on folderRenderer property ? #118

flavienbwk opened this issue Jul 6, 2020 · 4 comments

Comments

@flavienbwk
Copy link

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

@flavienbwk flavienbwk changed the title Pagination on fileRenderer property ? Pagination on folderRenderer property ? Jul 6, 2020
@klm-lab
Copy link

klm-lab commented Jul 7, 2020

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
Copy link
Author

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

@flavienbwk
Copy link
Author

flavienbwk commented Jul 7, 2020

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
Copy link

klm-lab commented Jul 10, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants