FacetConditionsManager
FacetConditionsManager
This is for:
DeveloperMethods
stopWatching
Unsubscribes the target facet from this managers' conditions.
Initialize
buildFacetConditionsManager
Creates an insight FacetConditionsManager
instance.
Parameters
-
engine:
InsightEngine
The insight engine.
-
props:
FacetConditionsManagerProps
The configurable
FacetConditionsManager
properties.
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.