How to Visually Differentiate Active Filters from "Include All" [Linux]
const hideIncludeAllFormattedLook = (scope, args) => {
const filterIncludeAllTitles = scope.filters.$$items.filter(f => f.jaql && f.jaql.filter.all).map(f => f.jaql.title)
const CfilterIncludeAllTitles = scope.filters.$$items.filter(f => f.levels && f.levels.find(l => l.filter.all))
CfilterIncludeAllTitles.forEach(f => {
f.levels.forEach(l => {
if (l.filter.all) {
filterIncludeAllTitles.push(l.title)
}
})
})
filterIncludeAllTitles.forEach(title => {
$('.f-mini-host').has(`span:contains(${title})`).find('.uc-tag').css('background-color', 'transparent');
})
}
dashboard.on('domready', hideIncludeAllFormattedLook)
- Save the changes and refresh the browser page.
- Check the dashboard to ensure that active filters with not all values selected are now visually distinct from the "Include All" filters.
Conclusion
By implementing the provided script, Sisense dashboard users can effectively differentiate between active filters and "Include All" filters, enhancing the user experience.
Disclaimer: This post outlines a potential custom workaround for a specific use case or provides instructions regarding a specific task. The solution may not work in all scenarios or Sisense versions, so we strongly recommend testing it in your environment before deployment. If you need further assistance with this please let us know.
0 comments