Home > widget-integration > ProductController > getSwatchSettings
ProductController.getSwatchSettings() method
Signature:
protected getSwatchSettings(): Record<string, {
colorCodes?: string[];
backgroundColor?: string;
backgroundImage?: string;
hasSwatchSetting?: boolean;
imageUrl?: string;
name: string;
swatchBorder?: string;
type: "one_color" | "image";
}> | undefined;
Returns:
Record<string, { colorCodes?: string[]; backgroundColor?: string; backgroundImage?: string; hasSwatchSetting?: boolean; imageUrl?: string; name: string; swatchBorder?: string; type: "one_color" | "image"; }> | undefined