how to add webviews when JavaScript calls a command? #10236
-
I found in the Tauri example (https://github.com/tauri-apps/tauri/blob/dev/examples/multiwebview/main.rs) that webviews can be added in the setup function. Is there any way to do this dynamically when JavaScript calls a command? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Jul 12, 2024
Replies: 1 comment 3 replies
-
Yes, you can call the WebviewBuilder in a normal (async) command just fine. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Multi webview support is currently wip/unstable so you have to add the
"unstable"
feature flag to the tauri dependency in Cargo.toml.Then the apis should not be private anymore.