Skip to content

Capture value of Dropdown Selection everytime it changes #538

Closed Answered by falkoschindler
c0pper asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to print the value whenever it changes, you should do it in the change event handler:

def set_allow_moving(event):
    print(event.value)

ui.select([1, 2, 3], value=1, on_change=set_allow_moving)

Replies: 1 comment 2 replies

Comment options

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

@falkoschindler
Comment options

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

This discussion was converted from issue #537 on March 16, 2023 19:39.