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

🚀 webui 输入框格式校验【期待pr贡献者】 #749

Open
Ikaros-521 opened this issue Apr 7, 2024 · 0 comments
Open

🚀 webui 输入框格式校验【期待pr贡献者】 #749

Ikaros-521 opened this issue Apr 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Ikaros-521
Copy link
Owner

参考文档:https://nicegui.io/documentation/input
demo:

from nicegui import ui

ui.input(label='Text', placeholder='start typing',
         on_change=lambda e: result.set_text('you typed: ' + e.value),
         validation={'Input too long': lambda value: len(value) < 20})
result = ui.label()

ui.run()
@Ikaros-521 Ikaros-521 added the enhancement New feature or request label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant