feat: link open in browser
This commit is contained in:
1 parent
e84126ad16
commit
a0f60152bc
4 files changed
+73
-1
No files matched your search
@@ -0,0 +1,27 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
dioxus::desktop::launch(app);
|
||||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
cx.render(rsx! (
|
||||
div {
|
||||
p {
|
||||
a {
|
||||
href: "http://dioxuslabs.com/",
|
||||
"default link"
|
||||
}
|
||||
}
|
||||
p {
|
||||
a {
|
||||
href: "http://dioxuslabs.com/",
|
||||
onclick: |_| {
|
||||
println!("Hello Dioxus");
|
||||
},
|
||||
"custom event link",
|
||||
}
|
||||
}
|
||||
}
|
||||
))
|
||||
}
|
||||
Reference in new issue
Block a user