<?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: applying a css style to a single element in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85780#M4654</link>
    <description>&lt;P&gt;Based on a couple other answers (such as &lt;A href="http://splunk-base.splunk.com/answers/69863/a-quick-question-about-applicationjs"&gt;http://splunk-base.splunk.com/answers/69863/a-quick-question-about-applicationjs&lt;/A&gt; ), trying to use an id like I would expect is kind of ugly, because the one Splunk generates in the HTML is based on the type of module and its order in the page.  The way I solved my issue was to add group="mygroupname" to the definition of the one table I wanted to change, and then add if (this.getGroupName() != "mygroupname") {return;} to my custom code block in application.js (which I see I didn't mention in my question).  The JS code block is already scoped to the particular view I need it for, so hopefully this isn't too inefficient.  If anyone has a better way to handle this, I'd be interested to hear it.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2013 18:38:58 GMT</pubDate>
    <dc:creator>cphair</dc:creator>
    <dc:date>2013-01-15T18:38:58Z</dc:date>
    <item>
      <title>applying a css style to a single element</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85779#M4653</link>
      <description>&lt;P&gt;This is probably a simple one, but I'm a novice at CSS.  I have an advanced XML dashboard with several tables, and I need to apply a custom style to one of them.  The code just affects the td elements, so the current CSS declaration is td.myCustomClass {blah blah}.  I tested the code on a sample dashboard and it works, but I don't know how to scope it to apply to just one table.  In straight-up CSS/HTML, I guess I would add an id tag to the single table I want to format differently, and then make my CSS declaration something like td.myCustomClass #foo {blah}.  I'm not sure (a) if that's exactly the right CSS syntax, and (b) how I apply an id tag in advanced XML.  Am I on the right track?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 22:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85779#M4653</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2013-01-11T22:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: applying a css style to a single element</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85780#M4654</link>
      <description>&lt;P&gt;Based on a couple other answers (such as &lt;A href="http://splunk-base.splunk.com/answers/69863/a-quick-question-about-applicationjs"&gt;http://splunk-base.splunk.com/answers/69863/a-quick-question-about-applicationjs&lt;/A&gt; ), trying to use an id like I would expect is kind of ugly, because the one Splunk generates in the HTML is based on the type of module and its order in the page.  The way I solved my issue was to add group="mygroupname" to the definition of the one table I wanted to change, and then add if (this.getGroupName() != "mygroupname") {return;} to my custom code block in application.js (which I see I didn't mention in my question).  The JS code block is already scoped to the particular view I need it for, so hopefully this isn't too inefficient.  If anyone has a better way to handle this, I'd be interested to hear it.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 18:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85780#M4654</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2013-01-15T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: applying a css style to a single element</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85781#M4655</link>
      <description>&lt;P&gt;Thanks cphair. "this.getGroupName()" is perfectly working.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 08:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/applying-a-css-style-to-a-single-element/m-p/85781#M4655</guid>
      <dc:creator>kasu_praveen</dc:creator>
      <dc:date>2013-05-08T08:40:05Z</dc:date>
    </item>
  </channel>
</rss>

