Home > widget-integration > FilterRender > buildEventFilterOptionCollapsed

FilterRender.buildEventFilterOptionCollapsed() method

Sets data-metadata attributes on collapse toggle elements.

Attaches collapse/expand metadata to the toggle button and its SVG child elements for both desktop and mobile layouts, enabling event delegation.

Signature:

buildEventFilterOptionCollapsed(rawAction: string, metadata: string): void;

Parameters

Parameter

Type

Description

rawAction

string

The filter option toggle ID

metadata

string

JSON-serialized action metadata string

Returns:

void