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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...