Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > getRenderer

JsPlumbToolkit.getRenderer() method#

Gets a renderer by the id parameter supplied to the render call (which is by default null, and only renderers for which an id was supplied are retrievable via this method)

Signature:

getRenderer<E>(id: string): ToolkitRenderer<E>;

Parameters#

ParameterTypeDescription
idstringID of the renderer to retrieve.

Returns:

ToolkitRenderer<E>

Either a Renderer that was registered against the given id, or null if none found.