-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating child widgets? #1073
Comments
Hi, you can use WidgetPod for this. I recommend you take a look at: |
I'll take a look. I changed up my UI to avoid this problem, so I'll close this issue. |
I'm going to reopen this, as I think a |
Fixes #1073. This version is largely for discussion, as it hasn't been tested at all.
thinking about this, my first thought is that you should be responsible for calling |
Yes, we discussed this on Zulip and the consensus is to just have the |
I have a custom widget that has a tree of child widgets, where the data of the child widgets is made up of both the widget's data and some of the widget's internal state. The
event
,lifecycle
,update
,layout
, andpaint
methods all handle assembling these together.In particular, the
event
method looks like this:This works great, except that when the widget's internal state changes, the children do not get updated.
Does it make sense to add a
request_update
method onEventCtx
? Or is there a better way to do this?The text was updated successfully, but these errors were encountered: