How to implement window onresize callback implementation (yew 0.19.3)? #2815
-
Hi rustaceans, |
Beta Was this translation helpful? Give feedback.
Answered by
WorldSEnder
Aug 7, 2022
Replies: 1 comment 1 reply
-
You can create a
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fstuess
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create a
gloo::events::EventListener::new(&gloo::utils::window(), "resize", todo!("callback function here"))
manually. If you use function components, this could look something like