Home > widget-integration > StickyController > createOption
StickyController.createOption() method
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.
Signature:
createOption(layoutType?: StickyLayoutType, layoutStyle?: string): ExtendedBoostStickyOptions;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
layoutType |
(Optional) Active layout bucket for the sticky instance being created. | |
|
layoutStyle |
string |
(Optional) Active Boost filter layout style. |
Returns:
Sticky options consumed by StickyService factory methods.