Home > widget-integration > FilterRender > handleToggle

FilterRender.handleToggle() method

Toggles classes on target elements Used for expand/collapse functionality

Signature:

protected handleToggle(action: {
		targets?: Array<{
			targetId: string;
			classToggle: string;
		}>;
	}, containerId?: string): void;

Parameters

Parameter

Type

Description

action

{ targets?: Array<{ targetId: string; classToggle: string; }>; }

Action containing targets to toggle

containerId

string

(Optional) Optional container selector to scope the query

Returns:

void