mhamano / Qlik-Sense-Reload-Button

Reload Button for Qlik Sense
22 stars 25 forks source link

How to change the ICON of the reload button #5

Open kishanoranw opened 8 years ago

kishanoranw commented 8 years ago

When i am using the Reload Button Extension in Qlik sense, i am geting this icon circled in red: reload

I want to change the icon of the Reload button to something like this : reload_btn

mhamano commented 8 years ago

Hi,

The easiest way is modifying the code in ReloadButton.js as follows. Following example show the image file named "reload_btn.png" placed on the default content library.

-existing code

           // Display Extension Visualization
            var html = html = '<a href="#" id="modal-open" class="btn btn-primary">Reload</a>'; 

-modified coded

            var url = '/content/default/reload_btn.png';
           var html = '<a href="#" id="modal-open" >' + '<img style="width:100%" src="' + url + '">' + '</a>';