Home > widget-integration > CombinedProductListingsController > syncCombinedSliderIfChildActive
CombinedProductListingsController.syncCombinedSliderIfChildActive() method
Resolves images for the combined slider and syncs the slider DOM if a child variant is active. Returns the resolved images array for the caller to use for UI updates.
Signature:
syncCombinedSliderIfChildActive(modal: HTMLElement, fallbackImages: ProductImage[], sliderRef: {
slick(method: string, ...args: unknown[]): unknown;
} | null, onThumbClick: (index: number) => void): ProductImage[];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
modal |
HTMLElement | |
|
fallbackImages | ||
|
sliderRef |
{ slick(method: string, ...args: unknown[]): unknown; } | null | |
|
onThumbClick |
(index: number) => void |
Returns: