Facet Stat
Role attribute
Every instance of this component carries:
wf-algolia-elementfacet-statAlgolia index to query.
Which value to display: an aggregate (min/max/avg/sum) of wf-algolia-field, or count (number of matching records - needs no field).
Numeric field to aggregate for min/max/avg/sum (must be numeric + in attributesForFaceting, e.g. rate). Not needed when wf-algolia-stat="count".
Optional number/date transform: number (thousands grouping), year (4-digit), or rating (★). Independent of prefix/suffix - those now render via the display template.
Text shown before the value (e.g. a currency symbol or unit). Rendered by composing it into the display template as "<prefix>{value}", so it applies with or without a number format. Example: "$" shows 1299 as $1299.
Text shown after the value (e.g. a unit or symbol). Rendered by composing it into the display template as "{value}<suffix>", so it applies with or without a number format. Example: " kg" shows 5 as 5 kg.
How many decimal places to keep on a number. Example: "2" keeps cents, so 1299 shows as 1299.00. Leave blank for whole numbers.
Advanced: full display template with {value}, e.g. "From {value}". If set, it overrides Prefix/Suffix (they are ignored).
Static field to scope the stat (with -value), e.g. categories.lvl0.
Scope value (CMS-bindable), e.g. the category name.
Make the tile navigable. URL template with {value} (the scoped base-filter value) and {field}, e.g. /category/{value}.
Cleans the value into a URL-friendly slug before it goes into the link. Example: "Creative & Brand" becomes creative-brand. Off by default.