From 5a03734b6767fed04c0913384584d8f59dc597ea Mon Sep 17 00:00:00 2001 From: jelemux Date: Tue, 24 Nov 2020 21:58:51 +0100 Subject: add traits for viewmodel and view --- src/util.rs | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/util.rs (limited to 'src/util.rs') diff --git a/src/util.rs b/src/util.rs deleted file mode 100644 index 3d8f231..0000000 --- a/src/util.rs +++ /dev/null @@ -1,39 +0,0 @@ -use yew::prelude::*; - -pub fn text_field_input(label: &str, id: &str, placeholder: Option<&str>, oninput: Callback) -> Html { - html!{ -
- -
- -
-
- } -} - -pub fn checkbox_field_input(label: &str, id: &str, checked: bool, onclick: Callback) -> Html { - html!{ -
- -
- } -} \ No newline at end of file -- cgit v1.2.3