Dashboards & Visualizations

Hide system buttons in classic XML Dashboards

verbal_666
Builder

Hi.

Time ago, i got a css (with "display:none" way) to completely hide the system buttons in a classic XML Dashboard,

splunk_dashboard_system_buttons.jpg

Is there a css way to hide ONLY some panels (with their own IDs) buttons and not from entire Dashboard?

Since we are, is a css way to hide/display every single button from the 4?

I look deeply into the browser(s) debug/develop panels, but can't point to those **bleep** 4 icons 😆😏😎

 

Thanks.

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Give your panel an id e.g. "panel_id", then you can select the address elements in the dashboard element footer (or hide the whole footer by not selecting any address elements)

          #panel_id .dashboard-element-footer a[class="btn-pill export"] {
            display: none !important;
          }

View solution in original post

bowesmana
SplunkTrust
SplunkTrust

@verbal_666 there is a built in way directly in the XML without using CSS to hide those buttons from panels

 <option name="link.inspectSearch.visible">false</option>

I use a token in that and set the token from a config file so I can turn on or off simply. 

See the docs here.

https://help.splunk.com/en/splunk-enterprise/create-dashboards-and-reports/simple-xml-dashboards/10....

 

verbal_666
Builder

Gosh!!! What a fool 🤕 i was addressing the "id" element to a "class" element

.panel_id .....

 

🤦‍🤦🤦‍ that's why did not work 😂

 

Maybe i need a review of css coding 😎

 

Thanks a lot, addressing to "id" element works, obviously,

#panel_id .....

👍👍👍

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Give your panel an id e.g. "panel_id", then you can select the address elements in the dashboard element footer (or hide the whole footer by not selecting any address elements)

          #panel_id .dashboard-element-footer a[class="btn-pill export"] {
            display: none !important;
          }
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...