Home > widget-integration > StickyController
StickyController class
Signature:
export declare class StickyController extends Controller
Extends: Controller
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Current sticky feature flags and layout styles derived from filter settings. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Applies legacy sticky override config to the options passed into StickyService factories. This currently maps | ||
|
Clears inline styles left by horizontal filter drawers and notifies listeners to close drawers. | ||
|
Clears mobile fullscreen sticky styles from the active mobile filter wrapper. | ||
|
Builds sticky options for the active layout before a StickyService factory is selected. Override this method to inject shop-specific offsets, selectors, dimensions, or style options without replacing the controller's desktop/mobile factory selection logic. | ||
|
Cancels scheduled refreshes and removes the active sticky instance. | ||
|
|
Resolves sticky customization config for a concrete filter layout. Technical Support can override this method when a shop stores sticky overrides outside | |
|
Initializes the sticky filter instance for the current viewport and filter layout. | ||
|
Recreates the sticky instance after filter DOM, layout settings, or viewport state changes. | ||
|
Schedules one animation-frame refresh and delayed follow-up refreshes for async DOM updates. |