How we can disable a facet value so that user can not select that but atleast can view them as disabled?
I would like to some of facet values as read only/disabled,,,how can we do that?any idea will be great help for me.
There is no option to do that out of the box
A couple approach/possible ideas :
- Create your own UI widget to display group by request values. More complicated and more work, but then you'd have 100% control of how you are rendering your results. You would need to push your own group by request (using the query builder object), then read those value on the querySuccess event. And then display them in your page.
- Using css, you could add pointer-events:none on the targeted facet, so that mouse event are off for that facet. Pointer event doc. It's not well supported in IE though Browser support
- Add an invisible div on top of the targeted facet (using z-index). That div could serve to trap all mouse events.