A callback function that must evaluate to true for the condition to be met.
true
The current values of the facet whose facetId is the parentFacetId value.
facetId
parentFacetId
Whether the condition is met.
const fileTypeHasSomeSelectedValue: AnyFacetValueCondition<FacetValueRequest> = { parentFacetId: 'filetype', condition: (parentValues) => parentValues.some(value => value.state === 'selected')} Copy
const fileTypeHasSomeSelectedValue: AnyFacetValueCondition<FacetValueRequest> = { parentFacetId: 'filetype', condition: (parentValues) => parentValues.some(value => value.state === 'selected')}
.
The facetId of the facet whose values are used as input by the condition.
A callback function that must evaluate to
true
for the condition to be met.