wip: broken, but solved
This commit is contained in:
1 parent
879e107634
commit
cb74d70f83
21 files changed
+2398
-2341
No files matched your search
@@ -1,3 +1,4 @@
|
||||
use bumpalo::Bump;
|
||||
use dioxus_core::prelude::*;
|
||||
|
||||
fn main() {}
|
||||
@@ -12,21 +13,21 @@ struct ButtonProps<'a> {
|
||||
fn CustomButton(ctx: Context, props: ButtonProps) -> DomTree {
|
||||
let onfocus = move |evt: ()| log::debug!("Focused");
|
||||
|
||||
todo!()
|
||||
// ctx.render(rsx! {
|
||||
// // button {
|
||||
// // // ..props.attrs,
|
||||
// // class: "abc123",
|
||||
// // // style: { a: 2, b: 3, c: 4 },
|
||||
// // onclick: {move |evt| {
|
||||
// // log::info("hello world");
|
||||
// // }},
|
||||
// // // Custom1 { a: 123 }
|
||||
// // // Custom2 { a: 456, "abc", h1 {"1"}, h2 {"2"} }
|
||||
// // // Custom3 { a: "sometext goes here" }
|
||||
// // // Custom4 { onclick: |evt| log::info("click") }
|
||||
// // }
|
||||
// })
|
||||
// todo!()
|
||||
ctx.render(rsx! {
|
||||
button {
|
||||
// ..props.attrs,
|
||||
class: "abc123",
|
||||
// style: { a: 2, b: 3, c: 4 },
|
||||
onclick: move |evt| {
|
||||
// log::info("hello world");
|
||||
},
|
||||
// Custom1 { a: 123 }
|
||||
// Custom2 { a: 456, "abc", h1 {"1"}, h2 {"2"} }
|
||||
// Custom3 { a: "sometext goes here" }
|
||||
// Custom4 { onclick: |evt| log::info("click") }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// h1 {
|
||||
|
||||
Reference in new issue
Block a user