Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > getRenderedElement

Surface.getRenderedElement() method#

For the given object or object ID, retrieve the element that represents it in the UI. This method may return null, specifically in the case that you pass in a Port or Port ID, and that Port is represented as an Endpoint.

Signature:

getRenderedElement(obj: string | Base): HTMLElement;

Parameters#

ParameterTypeDescription
objstring | Base

Returns:

HTMLElement

HTMLElement that represents the given node, group or port.