You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inheriting from a ft.Control to build more complex custom controls, I would also like to issue custom events. These events could signal, that a resulting value has changed, or the user simply changed the state of the control.
Up until now, I used my own signal slot mechanic to do so. Also, simple callables could be used. But is there a way to use the Flet native callback system?
I tried to dig a little deeper into the code, but I think this mechanic is handled rather complex. Is there any recommendation on how to use custom events? Maybe this could also be mentioned on Custom controls.
Thanks in advance for your help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
When inheriting from a
ft.Control
to build more complex custom controls, I would also like to issue custom events. These events could signal, that a resulting value has changed, or the user simply changed the state of the control.Up until now, I used my own signal slot mechanic to do so. Also, simple callables could be used. But is there a way to use the Flet native callback system?
I tried to dig a little deeper into the code, but I think this mechanic is handled rather complex. Is there any recommendation on how to use custom events? Maybe this could also be mentioned on Custom controls.
Thanks in advance for your help.
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions