added instructions
This commit is contained in:
+3
-1
@@ -4,10 +4,12 @@ pub fn todo_app() -> Element {
|
||||
let todo = vec!["Todo", "Hovering", "Completed", "Foo", "Bar"];
|
||||
|
||||
rsx! {
|
||||
@SetStyle(todo_styling())
|
||||
|
||||
text { class: "title", static "Todo list app made with OSUI" }
|
||||
text { class: "title", "{}", "-".repeat(crossterm::terminal::size().unwrap().0 as usize) }
|
||||
for (t in todo) {
|
||||
ersx!( button{ class: "todo", on_click: fn(btn: &mut Button, _, _) {
|
||||
ersx!(button { class: "todo", on_click: fn(btn: &mut Button, _, _) {
|
||||
btn.class = if btn.class == "todo" {
|
||||
"complete"
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user