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

Usable with web_sys events? #33

Open
dbrgn opened this issue Jan 17, 2019 · 1 comment
Open

Usable with web_sys events? #33

dbrgn opened this issue Jan 17, 2019 · 1 comment

Comments

@dbrgn
Copy link

dbrgn commented Jan 17, 2019

Hello

This crate looks like an interesting candidate for inclusion in virtual-dom-rs (which currently has a very simplistic html! macro).

However, it looks like events in typed-html are tied to stdweb, right? Is there a way to use it so that the events can be mapped to web_sys events instead?

@bodil
Copy link
Owner

bodil commented Jan 19, 2019

It should be very possible, someone just has to put in the work. There's a PR open for it (#25) but it's currently incomplete. It could also be done in an external crate, but support for using bare functions as event handlers would need to be added in typed-html itself because of orphan instances.

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

2 participants