changeColor

@vulp/js-api > VulpApiModel > changeColor

VulpApiModel.changeColor() method

Selects the color of a color group.

Signature:

changeColor(colorGroupId: string, colorId: string, customColor?: {
        colorSystem: string;
        colorId: string;
    }): Promise<{
        model: IApiModelConfig;
    }>;

Parameters

Parameter

Type

Description

colorGroupId

string

The color group to change.

colorId

string

The color to change to.

customColor

{ colorSystem: string; colorId: string; }

(Optional) The custom color to change to.

**Returns:**

Promise<{ model: IApiModelConfig; }>

Promise that resolves to an object with the model property containing the updated model configuration.