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
Parameter | Type | Description |
---|---|---|
surfaceId | string | ID of the Surface to add the component to. |
params | any | Constructor parameters for the component. |
type | string | Type of component to add. |
Returns:
void