Dashboards & Visualizations

Help to format column text through xml

sdhawanx
Path Finder

I have a simple dashboard table where one of the columns is a download link. Is there a way to edit just the xml file of the dashboard and change the color of the text to blue in that column and also underline the same so that it appears like a downloadable link. 

Thanks in advance

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Add this as a panel (above the panel with the table)

    <panel depends="$alwaysHideCSSPanel$">
      <html>
        <style>
          #table_id td:nth-child(2) {
              color: blue !important;
              text-decoration: underline !important;
              text-decoration-color: blue !important;
          }
        </style>
      </html>
    </panel>

This assume you have an id for your table panel of "table_id" and you want the second column changed. Modify values accordingly. Note indexing in this instance starts at 1.

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Add this as a panel (above the panel with the table)

    <panel depends="$alwaysHideCSSPanel$">
      <html>
        <style>
          #table_id td:nth-child(2) {
              color: blue !important;
              text-decoration: underline !important;
              text-decoration-color: blue !important;
          }
        </style>
      </html>
    </panel>

This assume you have an id for your table panel of "table_id" and you want the second column changed. Modify values accordingly. Note indexing in this instance starts at 1.

sdhawanx
Path Finder

Thanks for the help. Worked absolutely perfectly.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...