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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...