Interface defining the parameters to be passed to the LabIcon constructor
The name of the icon. By convention, the icon name will be namespaced as so:
Customize how a DOM node is rendered. If .renderer is set on a given instance of VirtualElement, this function will be called every time that VirtualElement is rendered.
A string containing the raw contents of an svg file.
Optional cleanup function for custom renderers. If the .renderer field of a VirtualELement is set, and if .renderer.unrender is defined, when the element is changed or removed its corresponding DOM element will be passed to this function immediately before it is removed from the DOM.
unrender is not required for for simple renderers, such as those
document.createElement(). However, for certain
rendering techniques explicit cleanup is required in order to avoid
For example, if render calls
ReactDOM.render(..., host), then
there has to also be a corresponding implementation of unrender that
ReactDOM.unmountComponentAtNode(host) in order to prevent
a memory leak.
Generated using TypeDoc