Trait sauron_core::dom::Container [−][src]
pub trait Container<MSG, PMSG> {
fn update(&mut self, msg: MSG) -> Effects<MSG, PMSG>;
fn view(&self) -> Node<PMSG>;
fn style(&self) -> String { ... }
}
Expand description
A Container have children that is set from the parent component
It can update its Mode and returns follow ups and/or effects on the next update loop.
The view in the container is set by the parent component. The container itself can not listen to events on its view
Required methods
update the model of this component and return follow ups and/or effects that will be executed on the next update loop.