Home > widget-integration > RecommendationWidgetController > getMobileBreakpoint

RecommendationWidgetController.getMobileBreakpoint() method

Gets the mobile breakpoint value in pixels.

The breakpoint determines when the carousel switches from desktop to mobile configuration. Default is 768px. Override this method to customize the mobile breakpoint for shops with specific responsive design requirements.

Signature:

protected getMobileBreakpoint(): number;

Returns:

number

The breakpoint width in pixels where mobile layout activates

Example

Override to use custom breakpoint for shop theme:

protected getMobileBreakpoint() {
  // Match shop's theme breakpoint
  return 992; // Bootstrap's md breakpoint
}