Skip to content
Discussion options

You must be logged in to vote

It seems to me that the only question here that's not currently covered is how to call the show and hide methods — Is that right?

When I need to do things like this, I'll typically just use js_sys::Reflect::get() to get the function and to call it, but using wasm-bindgen to do the bindings properly is reasonable, I guess, if you want a better API.

What you're going to generate bindings to would be like a FluentDialogElement similar to all the element types like web_sys::HtmlDialogElement and so on.

You'd then define a separate struct FluentDialog that you'd implement ElementType on if you want to use it directly in a NodeRef without using Custom<_>. (ElementType is not a particularly comp…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@showbiz2k
Comment options

@gbj
Comment options

gbj Feb 3, 2025
Maintainer

Answer selected by showbiz2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants