Struct percy_dom::VElement [−][src]
pub struct VElement {
pub tag: String,
pub attrs: HashMap<String, AttributeValue, RandomState>,
pub events: Events,
pub children: Vec<VirtualNode, Global>,
pub special_attributes: SpecialAttributes,
}
Fields
tag: String
The HTML tag, such as “div”
attrs: HashMap<String, AttributeValue, RandomState>
HTML attributes such as id, class, style, etc
events: Events
Events 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, Global>
The children of this VirtualNode
. So a
special_attributes: SpecialAttributes
Implementations
Trait Implementations
Performs the conversion.