Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Hide empty checkbox filter value on text area

A Quick and dirty way to hide the annoying but useful [] (empty) checkbox on a checkbox filter in a text area:


html
<div id=filter onmouseover=hideEmpty()>
<SpotfireControl id="7daf87b0152b448a8fa82353af350875" />
</div>


js
var hideEmpty = function(){
document.querySelectorAll("#filter .sf-element.sf-element-filter-item:last-child")[0].style.display='none'
}

if(this['ps']) clearInterval(ps)
ps = setInterval(hideEmpty,100)




1 comment:

戴久坤 said...

Thank you so much for so many tips.

I am trying to use it with Spotfire 10.3.3, but it doesn't work for some reason.