Home > widget-integration > FilterRender > getMobileDrawerScrollers
FilterRender.getMobileDrawerScrollers() method
Everything the shopper can scroll inside the mobile drawer, keyed so each one is still recognisable after the swap: the drawer body, and the 214px box every option with more values than fits gets of its own. Desktop scrolls the page instead, and resetting there is the expected behaviour.
An option's box is keyed by the filterOptionId on its value list — an id the server markup ships with, unlike data-filterOptionId, which only writes once an idle callback runs, well after the swap.
Signature:
protected getMobileDrawerScrollers(dom: HTMLElement): Array<[
string,
Element
]>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
dom |
HTMLElement |
Returns:
Array<[ string, Element ]>