Home > widget-integration > ProductSwatchService > applyColorToSwatch

ProductSwatchService.applyColorToSwatch() method

Signature:

protected applyColorToSwatch(label: HTMLLabelElement, colorCodes: string[]): void;

Parameters

Parameter

Type

Description

label

HTMLLabelElement

colorCodes

string[]

Returns:

void