Skip to main content

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

addPalette() function#

Add a Palette to the Surface with the given id. If the Surface already exists and has been initialised the Palette will be added immediately; otherwise it will be enqueued for later processing. This is really just a wrapper around addComponent.

Signature:

export declare function addPalette(surfaceId: string, params?: any): void;

Parameters#

ParameterTypeDescription
surfaceIdstringID of the Surface to add the Palette to.
paramsanyConstructor parameters for the Palette.

Returns:

void