Dynamically Change The Filter Header Colour
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%)')
;
}
});
}
Updated 02-05-2024
intapiuser
Admin
Joined December 15, 2022