cancel
Showing results for 
Search instead for 
Did you mean: 
JeremyFriedel
Sisense Team Member
Sisense Team Member
The colors of the links or clickable elements opening the modal dashboard in a widget where Jump To Dashboard is enabled, can be changed with slight modification of the plugin.

 Screen Shot 2022-02-11 at 12.11.10 PM (1).png

The two files that can be modified for this functionality are :

  1. The color attribute in the styles.css stylesheet file, where the color attribute can be set for the color attribute for the selector:

 

div.fake-link​

 

Screen Shot 2022-02-11 at 12.10.46 PM.png

  • The parameter in the Javascript file

 

./js/services/displayAndGetDashboardsFunctions.js

 

in the function

 

modifyPivot2Cells

 

in the variable

 

jtdStyles

 

the parameter changed being 

 

color

 


Screen Shot 2022-02-11 at 12.11.04 PM.png

Screen Shot 2022-02-11 at 12.11.10 PM.png

 

In most cases the same color code would be used for both. Any valid HTML color name or HTML color code can be used.

 

Additionally, if you expect to change the color in the future, you can add an additional parameter to the appConfig variable in the

 

config.js

 

file, you can call this new parameter

 

linkColor

 

, and import it into the 

 

displayAndGetDashboardsFunctions.js

 

file, using this parameter the color can be changed via the config file in the future.

Screen Shot 2022-02-11 at 12.32.03 PM.png

Screen Shot 2022-02-11 at 12.31.51 PM.png

Screen Shot 2022-02-11 at 12.32.07 PM.png

 

Attached is a zip file copy of JTD with those changes, this zip will not automatically update to match the latest version of JTD so this should be used as a template of this changes, and do not overwrite the existing version of the  JTD plugin on your server.

 

Rate this article:
Version history
Last update:
‎03-02-2023 10:12 AM
Updated by: