Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants