diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-04 13:30:15 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-04 13:30:15 +0100 |
commit | 69ceb1f9ec68e41029759a6fcff3168adb6df373 (patch) | |
tree | 194f21d845da5617e1c6d7fadaab380d10e472f7 /src/view/telephone.rs | |
parent | 51bf8e89ce07864b70d7138bbc3958faf499cc67 (diff) | |
download | wasm-card-69ceb1f9ec68e41029759a6fcff3168adb6df373.tar.gz wasm-card-69ceb1f9ec68e41029759a6fcff3168adb6df373.tar.bz2 |
minor refactoring + comments
Diffstat (limited to 'src/view/telephone.rs')
-rw-r--r-- | src/view/telephone.rs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/view/telephone.rs b/src/view/telephone.rs index ca58538..63fdee7 100644 --- a/src/view/telephone.rs +++ b/src/view/telephone.rs @@ -1,14 +1,28 @@ +use yew::prelude::*; use yew::services::ConsoleService; use yewtil::ptr::Irc; use yewtil::ptr::Mrc; +use yewtil::NeqAssign; use crate::view::WeakComponentLink; use crate::viewmodel::Error; -use yew::prelude::*; -use yewtil::NeqAssign; use crate::viewmodel::telephone::*; use crate::viewmodel::VCardPropertyInputObject; use super::VCardPropertyInputComponent; +/// View Component for a `telephone` field +/// +/// # Examples +/// +/// ```compile_fail +/// let html = html!{ +/// <TelephoneView weak_link=some_weak_component_link +/// generated=self.link.callback( +/// |n: Irc<Telephone>| +/// Msg::GeneratedTelephone(some_telephone) +/// ) +/// /> +/// }; +/// ``` pub struct TelephoneView { props: Props, value: Mrc<Telephone>, |