Dashboards & Visualizations

Dashboard CSS Styles

kashz
Explorer

Hi,
So, I'm new to dashboard and styling. (I have very limited experience with CSS / JS).

I currently have a dashboard built up and I want to style it. Looking online there are multiple ways

  • HTML / CSS / JS
  • node.js (I dont have experience with node.js)
  • Simple XML Reference with CSS stylesheet
  1. Whats the easiest approach to learn and deliver a custom dashboard. I'm mainly aiming at Simple XML Reference dashboard with CSS. Is that okay?
  2. I do have one major question - online I see people adding EXTERNAL .css file in the app/static directory, which requires the splunk system to be rebooted, Would it better to use the inline approach of styling within the XML code and then extracting to make the process faster? What is the best approach to styling?

Looking at this example - https://answers.splunk.com/answers/659719/how-to-add-style-to-panel-titles-in-my-dashboard.html

  1. What is depends="$alwaysHideCSSPanel$"or depends=$HideForCSS$" - I cannot find any documentation on splunk / css for this?
  2. Wouldn't we need to set id= for a xml key inorder to use the css selector .panel or something?
  3. I see someplaces people use #dashboard-panel but without referencing that keyword, in CSS we need to use the class= selector before using it?

Need some general guidance / direction ?

0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...