Construct native VirtualDom nodes
Using the constructors in this module is the more efficient way of building your
Elm program's Dom, but unlike Dom.Element records, native VirtualDom nodes
cannot be modified (within an Elm program) after they are constructed.
Construct a node that wraps text; the first argument gives the tag, the second argument gives a list of attributes, and the third argument gives the internal text
This function is an alias for VirtualDom.node with a single text node as the
only child.
"Hello World!"
|> Dom.Node.textWrapper "p" []Construct a node that contains other nodes; the first argument gives the tag, the second argument gives a list of attributes, and the third argument gives a list of child nodes
This function is just an alias for VirtualDom.node.
[ "Hello World!"
|> Dom.Node.textWrapper "p" []
]
|> Dom.Node.container "div" []
Construct a leaf node (a node without children); the first argument gives the tag and the second argument gives a list of attributes
This function is an alias for
VirtualDom.nodewith an empty list of child nodes.