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!

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...