Home > widget-integration > RecommendationWidgetController > attachProductLinkHandlers

RecommendationWidgetController.attachProductLinkHandlers() method

Attaches click event handlers to product links and images for navigation and tracking. Handles both .boost-sd__product-link and .boost-sd__product-image elements. Based on the original implementation logic for consistency.

Signature:

protected attachProductLinkHandlers(container: HTMLElement, model: RecommendationModel): void;

Parameters

Parameter

Type

Description

container

HTMLElement

The widget container element

model

RecommendationModel

The recommendation model for analytics context

Returns:

void