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 the precision parameter to ui.number #195

Merged
merged 1 commit into from
May 20, 2024

Conversation

CrystalWindSnake
Copy link
Owner

usage:

from nicegui import ui
from ex4nicegui import to_ref, rxui

r_value = to_ref(3.14159265359)
r_precision = to_ref(5)

rxui.number(value=r_value, precision=r_precision)
rxui.label(r_value)
rxui.slider(min=1, max=5, value=r_precision)

@CrystalWindSnake CrystalWindSnake linked an issue May 20, 2024 that may be closed by this pull request
@github-actions github-actions bot added the feature feature label May 20, 2024
@CrystalWindSnake CrystalWindSnake merged commit 2cc3df1 into main May 20, 2024
3 checks passed
@CrystalWindSnake CrystalWindSnake deleted the feat/rxui-number-precision branch May 24, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the precision parameter to ui.number
1 participant