Facet dependsOn property
Is the facet dependsOn property exposed in the latest Coveo for Sitecore, or is this something we would need to add custom JS for?
Second, it appears that it triggers off of a parent facet. Can it trigger off of a specific value being selected in a parent facet or would we need custom JS for that as well?
Hi @mjarosch :)
You can always use the properties that are not fronted by Coveo for Sitecore by adding the
data-YOUR-ATTRIBUTE="...". For instance, dependsOn can be set on the facet using
data-depends-on="..." directly on the facet.
To achieve this in Coveo for Sitecore, we recommend duplicating the Facet component into your own and add the property on your duplicated component.
For your second question, the documentation specifies that the facet is shown only when the parent facet has a value selected. It does not seem to trigger for a specific value, so I guess you will need custom code for this.
Hope this helps :)