Replies: 1 comment 5 replies
-
If you name widgets with |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm building an app using the SimpleComponent / Component macro. It works great. But I don't understand how can I refer to the widgets generated by view! macro later?
My understanding is that the update_view() method is automatically handled by the Component, so I can't really use it.
I know I have access to the generated widgets in init() fn using:
let widgets = view_output!();
But what if I need those widgets later, for example in the event handlers in update() fn or in the post_view() fn or elsewhere?
I'm new to Relm4 and Rust, so probably there is some simple solution, but I can't see how this is supposed to work.
Beta Was this translation helpful? Give feedback.
All reactions