Struct virtual_node::VElement [−][src]
pub struct VElement {
pub tag: String,
pub attrs: HashMap<String, AttributeValue>,
pub custom_events: Events,
pub children: Vec<VirtualNode>,
}Fields
tag: StringThe HTML tag, such as “div”
attrs: HashMap<String, AttributeValue>HTML attributes such as id, class, style, etc
custom_events: EventsEvents that will get added to your real DOM element via .addEventListener
Events natively handled in HTML such as onclick, onchange, oninput and others
can be found in [VElement.known_events]
children: Vec<VirtualNode>The children of this VirtualNode. So a
Implementations
Build a DOM element by recursively creating DOM nodes for this element and it’s children, it’s children’s children, etc.