You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also looked into this once. There are a bunch of open issues related to construction/inheritance of JS objects #2853, #1721 and especially #621, #210 involving designers of wasm-bindgen. So looks like that defining Custom Elements from Rust wasn't supported by the framework.
Funny enough I started today with the goal to port this example to the current version of web-sys and wasm-bindgen. I got stuck at the same point. However, if above example ever worked, then it at least used to be possible without any javascript glue like done in (https://github.com/gbj/custom-elements). I assume some of the features where dropped from wasm-bindgen because they were to experimental/hacky?
I can't find any examples (that work) of creating a web component in rust.
So I want to do something like
I'm not sure how to get the
&HelloWorld::new()
into ajs_sys::Function
so that it can be passed intocustom_elements().define
and then how would I handle the call backs?
if anyone has a minimal working example that would be great.
The text was updated successfully, but these errors were encountered: