Skip to content
Discussion options

You must be logged in to vote

Simple example.

from nicegui import ui

def clear_number():
    number.value = None
    
def clear_input():
    input.value = None

number = ui.number()
input = ui.input()

ui.button("Clear Number", on_click=clear_number)
ui.button("Clear Input", on_click=clear_input)

ui.run()

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@falkoschindler
Comment options

@AL-THE-BOT-FATHER
Comment options

Answer selected by falkoschindler
Comment options

You must be logged in to vote
2 replies
@falkoschindler
Comment options

@minoger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #452 on March 05, 2023 17:37.