[][src]Trait euca::component::Component

pub trait Component<Message> {
    fn dispatch(&self, message: Message);
fn detach(&self);
fn node(&self) -> Option<Node>;
fn nodes(&self) -> Vec<Node>;
fn pending(&mut self) -> Vec<Node>; }

A self containted component that can live inside another app.

Required methods

fn dispatch(&self, message: Message)

Dispatch a message to this component.

fn detach(&self)

Detach the component from the dom.

fn node(&self) -> Option<Node>

Get the first web_sys::Node of this component (if any)

fn nodes(&self) -> Vec<Node>

Get the top level web_sys::Nodes of this component (if any)

fn pending(&mut self) -> Vec<Node>

Get nodes waiting to attach to the parent.

Loading content...

Implementors

Loading content...