<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I Hide Table Headers? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341947#M101331</link>
    <description>&lt;P&gt;Yes the code is working but it consume extra spaces but if you substitute it by display:none; the extra spaces will get rid but the data format will become misaligned.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 08:01:56 GMT</pubDate>
    <dc:creator>ejmin</dc:creator>
    <dc:date>2018-10-23T08:01:56Z</dc:date>
    <item>
      <title>How do I Hide Table Headers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341944#M101328</link>
      <description>&lt;P&gt;I'm trying to hide some table headers in a dashboard. Below is my javascript code:&lt;/P&gt;

&lt;P&gt;require(['jquery',&lt;BR /&gt;
      'splunkjs/mvc/simplexml/ready!'&lt;BR /&gt;
], function($) {&lt;BR /&gt;
     $(document).ready(function() {&lt;BR /&gt;
$("#table1 table thead").hide();&lt;BR /&gt;
});&lt;BR /&gt;
});&lt;/P&gt;

&lt;P&gt;If I go to the console in my web browser and manually type $("#table1 table thead").hide();, the table header is hidden. I've also tried initiating a delay on the .hide function, but that didn't do anything.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated! Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341944#M101328</guid>
      <dc:creator>bhenderson286</dc:creator>
      <dc:date>2017-11-02T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Hide Table Headers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341945#M101329</link>
      <description>&lt;P&gt;You should be able to do this directly using CSS Selector in Simple XML CSS Extension of Splunk Dashboard. You can give you table id (or multiple pattern based matching ids). Following example uses &lt;CODE&gt;&amp;lt;table id="tableWithHiddenHeader1"&amp;gt;&lt;/CODE&gt;. Then use CSS Selector based on table id. Following is CSS snippet:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          #tableWithHiddenHeader1 thead{
            visibility: hidden;
          }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the complete Run anywhere dashboard based on Splunk's _internal index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Hide Table Header Using CSS&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSStyle$"&amp;gt;
        &amp;lt;style&amp;gt;
          #tableWithHiddenHeader1 thead{
            visibility: hidden;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;table id="tableWithHiddenHeader1"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" sourcetype="splunkd" log_level!="INFO"
|  stats count by component
|  sort - count
|  head 10&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341945#M101329</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-02T17:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Hide Table Headers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341946#M101330</link>
      <description>&lt;P&gt;Wow, that worked! Thank you, sir!&lt;/P&gt;

&lt;P&gt;Here's the snippet I put in my dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;html depends="$dontshow$"&amp;gt;
    &amp;lt;style&amp;gt;
      #table1 thead{
      visibility:hidden;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341946#M101330</guid>
      <dc:creator>bhenderson286</dc:creator>
      <dc:date>2017-11-02T18:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Hide Table Headers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341947#M101331</link>
      <description>&lt;P&gt;Yes the code is working but it consume extra spaces but if you substitute it by display:none; the extra spaces will get rid but the data format will become misaligned.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Hide-Table-Headers/m-p/341947#M101331</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2018-10-23T08:01:56Z</dc:date>
    </item>
  </channel>
</rss>

