WixDataFilter functions enable you to filter and control which results are returned by a dataset when the
setFilter() function is applied.
A filter is used to control which data is contained in a dataset on your page.
For example, the following code shows a filter on a dataset that is connected to a collection containing customer data. The filter includes only customers over the age of 20:
The functions below are common to both queries and filters. The examples given are for queries but also work for filters.
Was this helpful?