Home > widget-integration > FilterController > handleFetchFilter

FilterController.handleFetchFilter() method

Fetches filter results from the API and updates the DOM.

Signature:

protected handleFetchFilter(addition?: FilterAPIAdditionParams): Promise<void>;

Parameters

Parameter

Type

Description

addition

FilterAPIAdditionParams

(Optional) Additional parameters for the filter API request

Returns:

Promise<void>

Example

Override to add custom API behavior:

protected async handleFetchFilter(addition = {}) {
  // Add custom parameters for specific shop
  addition.customParam = this.getShopSpecificParam();
  await super.handleFetchFilter(addition);
}