Home > widget-integration > FilterController > updateFilterDOM

FilterController.updateFilterDOM() method

Updates DOM with filter results Handles different update behaviors: replace, append (more), or prepend (previous)

Signature:

updateFilterDOM(domId: string, html: string, behavior?: "replace" | "more" | "previous"): void;

Parameters

Parameter

Type

Description

domId

string

Target DOM element ID

html

string

HTML content to render

behavior

"replace" | "more" | "previous"

(Optional) Update behavior type

Returns:

void