Home > widget-integration > CombinedProductListingsController > initCombinedListingThumbnailNavigation
CombinedProductListingsController.initCombinedListingThumbnailNavigation() method
Initializes thumbnail navigation for combined listing slider. Resolves images from current child variant state with fallback.
Signature:
initCombinedListingThumbnailNavigation(modal: HTMLElement, fallbackImages: ProductImage[], hooks: {
getCurrentImageIndex: () => number;
handleSliderNavigation: (index: number, images: ProductImage[], thumbItems: NodeListOf<HTMLElement>) => void;
updateNavigationButtons: (modal: HTMLElement, imageCount: number) => void;
}): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
modal |
HTMLElement | |
|
fallbackImages | ||
|
hooks |
{ getCurrentImageIndex: () => number; handleSliderNavigation: (index: number, images: ProductImage[], thumbItems: NodeListOf<HTMLElement>) => void; updateNavigationButtons: (modal: HTMLElement, imageCount: number) => void; } |
Returns:
void