Home > widget-integration > CartDrawerRecommendationController > applyLayoutModifier
CartDrawerRecommendationController.applyLayoutModifier() method
Apply or remove the two-columns layout modifier class on the recommendation container. This class enables CSS grid styling for the two-columns layout on desktop. On mobile/tablet the modifier is removed so the carousel layout takes effect.
Called on cart open, after re-fetch render, and on window resize.
Signature:
protected applyLayoutModifier(): void;
Returns:
void