[−][src]Trait sauron::Component
The app should implement this trait for it to be handled by the Program
Required methods
pub fn update(&mut self, _msg: MSG) -> Cmd<Program<Self, MSG>> where
Self: 'static,
[src]
Self: 'static,
Called each time an action is triggered from the view
pub fn view(
&self
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
[src]
&self
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
Returns a node on how the component is presented.
Provided methods
pub fn init(&self) -> Cmd<Program<Self, MSG>> where
Self: 'static,
[src]
Self: 'static,
an implementing APP component can have an init function which executes right after the APP is instantiated by the program
pub fn style(&self) -> Vec<String, Global>ⓘ
[src]
optionally a component can specify it's own css style