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!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...