How to interop with JS #439
-
Maybe I got it wrong, but I hoped to use Uno.Wasm.Bootstrap as an alternative to Blazor, but without all the web app overhead, so I can just compile a C# library to WASM and use it from JS. But it looks like it doesn't have a built-in JS interop layer? I'm looking for something similar to:
Is the project not designed for this or I'm missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Invoking methods from Javascript can be done with There's no public API provided by .NET outside of blazor that allows for invoking Javascript, but this class can be added to compensate for that, Uno.UI also provides more advanced interop (with Async support). |
Beta Was this translation helpful? Give feedback.
Invoking methods from Javascript can be done with
Module.mono_bind_static_method
.There's no public API provided by .NET outside of blazor that allows for invoking Javascript, but this class can be added to compensate for that, Uno.UI also provides more advanced interop (with Async support).