Struct yew::virtual_dom::VTag [−][src]
pub struct VTag {
pub node_ref: NodeRef,
pub attributes: Attributes,
pub key: Option<Key>,
// some fields omitted
}
Expand description
A type for a virtual Element representation.
Fields
node_ref: NodeRef
A node reference used for DOM access in Component lifecycle methods
attributes: Attributes
List of attributes.
key: Option<Key>
Implementations
Creates a new VTag instance with tag
name (cannot be changed later in DOM).
Add multiple VNode children.
Returns a mutable reference to the children of this VTag, if the node can have
Sets value
for an
InputElement or
TextArea
Returns checked
property of an
InputElement.
(Not a value of node’s attribute).
Sets checked
property of an
InputElement.
(Not a value of node’s attribute).
Adds a key-value pair to attributes
Not every attribute works when it set as an attribute. We use workarounds for:
value
and checked
.
Sets attributes to a virtual node.
Not every attribute works when it set as an attribute. We use workarounds for:
value
and checked
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for VTag
impl !UnwindSafe for VTag
Blanket Implementations
Mutably borrows from an owned value. Read more