Home > widget-integration > RecommendationWidgetController > attachProductInteractionHandlers
RecommendationWidgetController.attachProductInteractionHandlers() method
Attaches click event handlers for product interactions (add to cart, quick view, select options).
This method sets up event delegation for product item clicks within the recommendation widget. Uses the same pattern as filter module for consistency.
Signature:
protected attachProductInteractionHandlers(widgetElement: HTMLElement): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
widgetElement |
HTMLElement |
The widget container element |
Returns:
void