Home > widget-integration > FilterRender > renderOptionTemplate
FilterRender.renderOptionTemplate() method
Unified option rendering logic Handles list, box, and swatch display types
Signature:
protected renderOptionTemplate(params: {
option: any;
values: any[];
dom: HTMLElement;
label: string;
selectedKeys: Record<string, boolean>;
classNameSelected: string;
classNameUnselected: string;
templateType: "list" | "box" | "swatch";
formatPrices: boolean;
showDocCount?: boolean;
swatchShape?: string;
swatchType?: string;
}): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
params |
{ option: any; values: any[]; dom: HTMLElement; label: string; selectedKeys: Record<string, boolean>; classNameSelected: string; classNameUnselected: string; templateType: "list" | "box" | "swatch"; formatPrices: boolean; showDocCount?: boolean; swatchShape?: string; swatchType?: string; } |
Returns:
Promise<void>