Enum seed::virtual_dom::node::Node
source · pub enum Node<Ms> {
Element(El<Ms>),
Text(Text),
Empty,
NoChange,
}
Expand description
A component in our virtual DOM.
MDN reference
web_sys
reference
Variants§
Implementations§
source§impl<Ms> Node<Ms>
impl<Ms> Node<Ms>
sourcepub fn add_attr(
&mut self,
key: impl Into<Cow<'static, str>>,
val: impl Into<AtValue>
) -> &mut Self
pub fn add_attr( &mut self, key: impl Into<Cow<'static, str>>, val: impl Into<AtValue> ) -> &mut Self
See El::add_attr
sourcepub fn add_style(
&mut self,
key: impl Into<St>,
val: impl Into<CSSValue>
) -> &mut Self
pub fn add_style( &mut self, key: impl Into<St>, val: impl Into<CSSValue> ) -> &mut Self
See El::add_style
sourcepub fn add_event_handler(&mut self, event_handler: EventHandler<Ms>) -> &mut Self
pub fn add_event_handler(&mut self, event_handler: EventHandler<Ms>) -> &mut Self
See El::add_event_handler
Trait Implementations§
source§impl<Ms> IntoNodes<Ms> for Node<Ms>
impl<Ms> IntoNodes<Ms> for Node<Ms>
source§fn into_nodes(self) -> Vec<Node<Ms>>
fn into_nodes(self) -> Vec<Node<Ms>>
Converts item or items to
Vec<Node<Ms>
.