Struct sauron_core::dom::CreatedNode [−][src]
pub struct CreatedNode { pub node: Node, // some fields omitted }
Expand description
A node along with all of the closures that were created for that node’s events and all of it’s child node’s events.
Fields
node: Node
A Node
or Element
that was created from a Node
Implementations
create a simple node with no closure attache
create a text node
pub fn create_dom_node<DSP, MSG>(
program: &DSP,
vnode: &Node<MSG>,
focused_node: &mut Option<Node>
) -> CreatedNode where
MSG: 'static,
DSP: Clone + Dispatch<MSG> + 'static,
pub fn create_dom_node<DSP, MSG>(
program: &DSP,
vnode: &Node<MSG>,
focused_node: &mut Option<Node>
) -> CreatedNode where
MSG: 'static,
DSP: Clone + Dispatch<MSG> + 'static,
Create and return a CreatedNode
instance (containing a DOM Node
together with potentially related closures) for this virtual node.
set the element attribute
set the element attribute