Type Alias TsCont

Source
pub type TsCont = JsOrRsF<(HtmlDivElement, LeptosContext), ()>;

Aliased Type§

pub enum TsCont {
    Rs(Box<dyn JsFunLike<(HtmlDivElement, LeptosContext), (), Output = Result<(), String>>>),
    Js(JsFun<(HtmlDivElement, LeptosContext), ()>),
}

Variants§

Implementations§

Source§

impl TsCont

Source

pub fn view(self) -> impl IntoView

Source

pub fn res_into_view(f: Result<Option<Self>, String>) -> impl IntoView