cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
You can use this as a dashboard script:
var colorFilterName = 'L4L Starting Period';
var backgroundColor = 'yellow';

dashboard.on('refreshstart', (d, args) => {
 $('.ew-i-caption:contains(' + colorFilterName + ')').parent().css('background-color', backgroundColor);
});
Another version of the script:
dashboard.on("refreshstart", setHeaderColor);

 

function setHeaderColor() {

$(".f-mini-host").find(".f-header-host.ew-i-header-host").children().each((i, elem) => {
if (elem.textContent.includes( 'Rollback') || elem.textContent.includes( 'L4L')){

$(elem).css('background', 'linear-gradient(90deg, rgba(116,219,255,1) 0%, rgba(255,255,255,1) 20%)')
;

}
});
}
Version history
Last update:
‎02-05-2024 10:11 AM
Updated by:
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: