Home > widget-integration > CartDrawerRecommendationController > isColumnLayout

CartDrawerRecommendationController.isColumnLayout() method

Determine whether the current layout is the two-columns grid layout.

Returns true when the viewport is desktop (> 991px) and the cart is configured with cartStyle: 'side' and sideLayout: 'two-columns'. On mobile/tablet this always returns false since the two-columns layout is desktop-only.

Signature:

protected isColumnLayout(): boolean;

Returns:

boolean

true if the two-columns layout is active