Skip to content
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

Feature Idea: Implementation of CustomEvent? #401

Open
mbuscemi opened this issue Apr 17, 2020 · 0 comments
Open

Feature Idea: Implementation of CustomEvent? #401

mbuscemi opened this issue Apr 17, 2020 · 0 comments

Comments

@mbuscemi
Copy link

I've been working on setting up bi-directional communication between an app's Webview and Yew (stdweb-based) layers. Getting messages from Webview back into Yew was particularly challenging. With help from the maintainer of Webview, I eventually found a solution using the CustomEvent API in JS.

I got this to work on the Yew/stdweb layer using a js! block. However, small typos in JavaScript code yield obscure errors. I would prefer to utilize something document().add_event_listener( ... ). However, there does not appear to be a CustomEvent implementation for stdweb.

I would be happy to work on contributing that, if there is a desire for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant