wip: drag and drop support
This commit is contained in:
1 parent
20a29409b2
commit
9ae981a1af
4 files changed
+85
-71
No files matched your search
@@ -0,0 +1,18 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
dioxus::desktop::launch_with_props(app, (), |c| {
|
||||
c.with_file_drop_handler(|w, e| {
|
||||
println!("{:?}", e);
|
||||
false
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
cx.render(rsx!(
|
||||
div {
|
||||
h1 { "drag an file here" }
|
||||
}
|
||||
))
|
||||
}
|
||||
Reference in new issue
Block a user