FacetConditionsManager
FacetConditionsManager
|
|
Note
This component was introduced in version |
Methods
stopWatching
Unsubscribes the target facet from this managers' conditions.
Initialize
buildFacetConditionsManager
Creates an insight FacetConditionsManager instance.
Parameters
-
engine:
InsightEngineThe insight engine.
-
props:
FacetConditionsManagerPropsThe configurable
FacetConditionsManagerproperties.
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:
stringThe
facetIdof 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:
stringThe
facetIdof the facet whose values are used as input by the condition. -
condition: ``
A callback function that must evaluate to
truefor the condition to be met.