Trait kagura::html::component::Constructor[][src]

pub trait Constructor: Update + Render {
    fn constructor(props: &Self::Props) -> Self;

    fn with_children<DemirootComp: Component>(
        props: Self::Props,
        sub: Sub<Self::Sub, DemirootComp::Msg>,
        children: Vec<Html<DemirootComp>>
    ) -> Html<DemirootComp> { ... }
fn with_child<DemirootComp: Component>(
        props: Self::Props,
        sub: Sub<Self::Sub, DemirootComp::Msg>,
        child: Html<DemirootComp>
    ) -> Html<DemirootComp> { ... }
fn empty<DemirootComp: Component>(
        props: Self::Props,
        sub: Sub<Self::Sub, DemirootComp::Msg>
    ) -> Html<DemirootComp> { ... } }

Required methods

Provided methods

Implementors