We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from nicegui import ui from ex4nicegui import on from ex4nicegui.reactive import use_pagination page = use_pagination(list(range(100))) @on(page.current_page) def _(): print(page.current_page.value) ui.button("prev page", on_click=page.prev) ui.button("next page", on_click=page.next) ui.run()
If you keep clicking the previous page, the value of the current page in the console will be less than 0.
The text was updated successfully, but these errors were encountered:
The number of pages should be controlled by the user
Sorry, something went wrong.
No branches or pull requests
If you keep clicking the previous page, the value of the current page in the console will be less than 0.
The text was updated successfully, but these errors were encountered: