selectFilter()

Opens the editor's filter picker for a filter data field on the selected component, letting a Wix user define filter conditions for a data collection.

Syntax

Copy

Parameters

NameTypeDescription
dataItemKeystringKey of a data field with dataType: 'filter' in the manifest. The editor opens the picker and saves the selected conditions back to this field automatically.

Returns

Promise<ElementFilter | undefined>

The selected filter conditions, or undefined if the Wix user closes the picker without selecting anything.

Example

Copy

See also

Last updated: 8 September 2026

Did this help?