hasAll( )


Refines a query or filter to match items whose specified property values equals all of the specified value parameters.

The hasAll() function refines a WixDataQuery or WixDataFilter to only match items where the value of the specified property equals all of the specified values.

Matching strings with hasAll() is case sensitive, so "text" is not equal to "Text".

If the value of the specified property is an array, hasAll() will match if there is a match in the elements of that array for all of the specified values.

You can specify a list of values to match by providing an array of String, Number, or Date types as the value parameters.

Method Declaration
Copy
Method Parameters
propertyNamestringRequired

The property whose value will be compared with value.


valueunionRequired

The values to match against.

Returns
Return Type:WixDataQuery
Did this help?