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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...