Skip to main content

Home > @jsplumbtoolkit/browser-ui-vue2 > addComponent

addComponent() function

Add a component to the Surface with the given id. If the Surface already exists and has been initialised the component will be added immediately; otherwise it will be enqueued for later processing.

Signature:

export declare function addComponent(surfaceId: string, params: any, type: string): void;

Parameters

ParameterTypeDescription
surfaceIdstringID of the Surface to add the component to.
paramsanyConstructor parameters for the component.
typestringType of component to add.

Returns:

void