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 VirtualElementPass node directly. Instead, the hpass() function will be used to create an element tree.

Hierarchy

Constructors

Properties

Constructors

Properties

The attributes for the element.

children: readonly VirtualNode[]

The children for the element.

renderer: undefined | VirtualElement.IRenderer

An 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.

tag: string

The tag name for the element.

type: "element" = ...

The type of the node.

This value can be used as a type guard for discriminating the VirtualNode union type.

Generated using TypeDoc