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

Add paging function to selection prompt #1537

Open
ross-oreto opened this issue May 6, 2024 · 0 comments
Open

Add paging function to selection prompt #1537

ross-oreto opened this issue May 6, 2024 · 0 comments

Comments

@ross-oreto
Copy link

The current paging options for selection prompt only supports client-based paging, meaning all the choices are already in memory.
If there are hundreds or thousands of choices possible this is not ideal, and it would be better to go get the next/prev page choices as the user is paging.

Describe the solution you'd like
There is a need to page these results dynamically by calling a function to go get the next page/batch of results from whatever storage.

Describe alternatives you've considered
I tried to extend the SelectionPrompt class and add the functionality, but it is sealed. Is there a way to add this functionality by way of extending/extension?


Please upvote 👍 this issue if you are interested in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant