FacetConditionsManager

This is for:

Developer
In this article
Note

This component was introduced in version 2.39.0.

Methods

stopWatching

Unsubscribes the target facet from this managers' conditions.

Initialize

buildFacetConditionsManager

Creates an insight FacetConditionsManager instance.

Parameters

Returns FacetConditionsManager

FacetConditionsManagerProps

The configurable FacetConditionsManager properties.

Properties

  • conditions: AnyFacetValuesCondition<AnyFacetValueRequest>[]

    The conditions to evaluate.

  • If any of these conditions is met, the dependent facet is enabled. * If none of these conditions is met, the dependent facet is disabled.

  • facetId: string

    The facetId of the facet to enable or disable depending on whether conditions are met.

AnyFacetValuesCondition<AnyFacetValueRequest>[]

The conditions to evaluate.

  • If any of these conditions is met, the dependent facet is enabled. * If none of these conditions is met, the dependent facet is disabled.

Properties

  • parentFacetId: string

    The facetId of the facet whose values are used as input by the condition.

  • condition: ``

    A callback function that must evaluate to true for the condition to be met.