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%)')
;

}
});
}
Rate this article:
Version history
Last update:
‎02-05-2024 10:11 AM
Updated by: