Home > widget-integration > FILTER_TREE_STATE_KEY

FILTER_TREE_STATE_KEY variable

Filter tree UI state storage keys.

Keys used to persist filter tree open/closed states and focus information in session storage for consistent user experience across page loads.

Signature:

FILTER_TREE_STATE_KEY: {
	readonly MOBILE_OPENING: "filterTreeMobileOpening";
	readonly DESKTOP_OPENING: "filterTreeDesktopOpening";
	readonly CURRENT_FOCUS: "filterCurrentFocus";
	readonly KEY_CODE: "filterKeyCode";
}

Remarks

Technical Support teams can use these keys to access or modify filter tree state in custom implementations.

Example

const isMobileOpen = sessionStorage.getItem(FILTER_TREE_STATE_KEY.MOBILE_OPENING);
if (isMobileOpen === 'true') {
  // Mobile filter tree is currently open
}