I want to invoke a function when user assigns or accesses its value to ui.input or ui.number programmatically but i am not able to write @property & @value.setter #5125
Unanswered
rajeshhalyal
asked this question in
Q&A
Replies: 1 comment
-
Hi @rajeshhalyal , Do you mean to just change or access the values of the elements? For ex: this will change the value of the input on button click input = ui.input(value='Initial value')
ui.button('Change input value', on_click=lambda: input.set_value('New value')) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Example Code
Description
I want to invoke a function when user assigns or accesses its value to ui.input or ui.number programmatically but i am not able to write @Property & @value.setter
if i write this i get a endless loop what other options do i have to achieve the same effect
NiceGUI Version
2.23.3
Python Version
3.12
Browser
Chrome
Operating System
Windows
Additional Context
i have a chain of ui.input which when assigned a value programmatically change values of other ui.number and ui.input depending on the value assigned
Beta Was this translation helpful? Give feedback.
All reactions