Sisense Community logo
    • Community Feedback
    • Chapters
    • Events
    • Forums
      • Help and How To
      • Product Feedback Forum
      • Strategy & Use Cases
    • Blogs
    • KB Docs
      • KB Docs
      • Add-Ons & Plug-Ins
      • APIs
      • Best Practices
      • Blox
      • CDT
      • Cloud Managed Service
      • Data Models
      • Data Sources
      • Embedding Analytics
      • How-Tos & FAQs
      • Onboarding
      • PySisense
      • Security
      • Sisense Administration
      • Sisense Intelligence & AI
      • Troubleshooting
      • Widget & Dashboard Scripts
    • Support
    • Learning
      • Sisense Academy: Free Courses and Certifications
      • Official Developer Documentation
      • Official Product Documentation
      • Official Sisense Youtube Channel
      • Sisense Compose SDK Playground
    • Use Case Gallery
    All PostsDiscussionsBlogsIdeasQuestions
    Leaderboards
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    Discussions
    • Knowledge Base DocsChevronRightIcon
    • Widget & Dashboard ScriptsChevronRightIcon
    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%)')
    ;
    
    }
    });
    }
    intapiuser
    By
    intapiuser
    Posted 3 years ago
                                           
             
    0 comments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
                                                                                     
    •                                                              
    •                                                              
    •