Skip to content

How to execute an action on value change #1501

Answered by coderedart
kkharji asked this question in Q&A
Discussion options

You must be logged in to vote

you can simply check that the value in self.state.mode has changed before and after running the UI code.
also ui.selectable_value() returns a Response which has a .changed() method which will return true if the value changed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kkharji
Comment options

Answer selected by kkharji
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