How do I disable a checkbox on Facets Block?


I would like to disable checkboxes of a Facets block.
The option will still be visible but the user will not be able to click it.

I am using Search API, Search API Solr, Facets.

I have created a widget extending the current checkbox widget and added the attribute readonly=”readonly” to the item.

However, the checkbox is built using JS and it has got static text on it. It does not get any extra attribute.
So I am building my own JS library to do that.

All I want is to add readonly attribute to the checkbox.

Thanks in advance.

قالب وردپرس