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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...