Skip to main content

Home > @jsplumbtoolkit/browser-ui-vanilla > BrowserUI > render

BrowserUI.render() method

Configures the given element as a Surface, registering it so that it reflects any changes to the underlying data. If there is any data in the Toolkit at the time of this call it is rendered; any data subsequently loaded is automatically rendered. You can supply layout arguments to this method (layout type + layout specific parameters), as well as jsPlumb rules for endpoints, paint styles etc.

Signature:

render(container: Element, options?: VanillaSurfaceRenderOptions, templateRenderer?: TemplateRenderer<any>): Surface;

Parameters

ParameterTypeDescription
containerElementThe Element to render into
optionsVanillaSurfaceRenderOptionsRender options
templateRendererTemplateRenderer<any>

Returns:

Surface