Attach a widget to a host DOM node.
The widget of interest.
The DOM node to use as the widget's host.
The child of
host to use as the reference element.
If this is provided, the widget will be inserted before this
node in the host. The default is
null, which will cause the
widget to be added as the last child of the host.
This will throw an error if the widget is not a root widget, if the widget is already attached, or if the host is not attached to the DOM.
Generated using TypeDoc