DEPRECATED - use VirtualElement with a defined renderer param instead
Construct a new virtual element pass thru node.
the tag of the parent element of this node. Once the parent element is rendered, it will be passed as an argument to renderer.render
attributes that will assigned to the parent element
an object with render and unrender functions, each of which should take a single argument of type HTMLElement and return nothing. If null, the parent element will be rendered barren without any children.
Readonly attrsThe attributes for the element.
Readonly childrenThe children for the element.
Readonly rendererAn optional custom renderer for the element's children. If set, on render this element's DOM node and it's attrs will be created/updated as normal. At that point the DOM node is handed off to the renderer.
Readonly tagThe tag name for the element.
Readonly typeThe type of the node.
This value can be used as a type guard for discriminating the
VirtualNode union type.
DEPRECATED - use VirtualElement with a defined renderer param instead. This class is provided as a backwards compatibility shim
A "pass thru" virtual node whose children are managed by a render and an unrender callback. The intent of this flavor of virtual node is to make it easy to blend other kinds of virtualdom (eg React) into Phosphor's virtualdom.
Notes
User code will not typically create a
VirtualElementPassnode directly. Instead, thehpass()function will be used to create an element tree.