Add Ability to Hide Filter Refresh on Dashboards

Asif Bhat shared this idea 3 years ago
Idea Logged

Currently, when editing a dashboard, there is an option to 'hide' the reset button in the Filter Properties.

bcc052c0eb5892b5880bdcb2eac966fd


However, We would also like another option to 'hide' the Refresh button in the Filter Properties -

fd093022919c8ab6972de31e098481f6

Replies (2)

photo
1

Hey Asif,

I hope you are well!


This has now been raised with the dev team as an enhancement request.

All updates concerning this idea will be posted here


Best Wishes,

Lesley

photo
1

Hi Asif,

While YF are making this a hell of a lot easier with an option in the Filter Properties, there are a couple of workaround options...

If you want to hide the refresh button on a single dashboard, and providing that dashboard is a canvas dashboard, you can hide the icon by adding the following to the this.onRender function in code mode:

    let refreshCount = 0;
    let refreshCheck = setInterval(() => {
        if($('.filterListControlIcon.refresh').length > 0){
            clearInterval(refreshCheck);
            $('.filterListControlIcon.refresh').css({visibility:'hidden'});
        } else if(refreshCount <= 50){
            refreshCount++;
        } else {
            clearInterval(refreshCheck);
            console.error('Refresh icon did not render within 5 seconds');
        }
    },100);
Alternatively, if you want to hide the refresh token globally, you can create a css file and save it to   

<Yellowfin Install Location>/appserver/webapps/ROOT/customcss with the following rule:

.filterListControlIcon.refresh{
	visibility:hidden!important;
}

Hope this helps.


Lex

Leave a Comment
 
Attach a file