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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...