Home > widget-integration > CombinedProductListingsController > syncCombinedListingSlider
CombinedProductListingsController.syncCombinedListingSlider() method
Sync slider slides and thumbnail strip to the given images. Only called when a child product is active.
Signature:
syncCombinedListingSlider(modal: HTMLElement, images: ProductImage[], sliderRef: {
slick(method: string, ...args: unknown[]): unknown;
} | null, onThumbClick: (index: number) => void): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
modal |
HTMLElement | |
|
images | ||
|
sliderRef |
{ slick(method: string, ...args: unknown[]): unknown; } | null | |
|
onThumbClick |
(index: number) => void |
Returns:
void