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