<?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: Checkbox horizontal Value alignment in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333269#M21621</link>
    <description>&lt;P&gt;Apply the following CSS Style to your dashboard with checkboxes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;row&amp;gt;
     &amp;lt;html depends="$alwaysHideCSSStyle$"&amp;gt;
       &amp;lt;style&amp;gt;
        .control.shared-controls-syntheticcheckboxcontrol.control-default{
          display: inline-block !important;
        }
        #input_checkbox{
          width: 200% !important;
        }
       &amp;lt;/style&amp;gt;
     &amp;lt;/html&amp;gt;
   &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I have increased width of input panel to 200% to accommodate more options horizontally. If options wrap to the next row, you would need to increase it further.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3272i0A6BC2D5DAC60BA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 13:12:32 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-07-26T13:12:32Z</dc:date>
    <item>
      <title>Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333268#M21620</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;

&lt;P&gt;i created a dashboard with simple-xml and want a checkbox in top of my other input fields to negate the searches.&lt;BR /&gt;
For my actually working example i must also hide the first value from the checkbox, this works actually with the solution which i found.&lt;BR /&gt;
Actually i use Splunk 6.5.3.&lt;/P&gt;

&lt;P&gt;Here is a snippet from my simple xml example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="checkbox" token="input_checkbox" searchWhenChanged="true" id="input_checkbox"&amp;gt;
        &amp;lt;label&amp;gt;Checkbox&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;Nothing&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="V1"&amp;gt;Value1&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="V2"&amp;gt;Value2&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="V3"&amp;gt;Value3&amp;lt;/choice&amp;gt;
        &amp;lt;delimiter&amp;gt;;&amp;lt;/delimiter&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My actuall dashboard.css looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;div[id="input_checkbox"] {
width: 100% !important;
}

div[id="input_checkbox"]&amp;gt;div&amp;gt;div&amp;gt;div&amp;gt;div:nth-child(1) {
    display:none;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But i dont know how i can bring the values horizontal. &lt;BR /&gt;
Can anybody please help in that case?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 06:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333268#M21620</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2017-07-26T06:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333269#M21621</link>
      <description>&lt;P&gt;Apply the following CSS Style to your dashboard with checkboxes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;row&amp;gt;
     &amp;lt;html depends="$alwaysHideCSSStyle$"&amp;gt;
       &amp;lt;style&amp;gt;
        .control.shared-controls-syntheticcheckboxcontrol.control-default{
          display: inline-block !important;
        }
        #input_checkbox{
          width: 200% !important;
        }
       &amp;lt;/style&amp;gt;
     &amp;lt;/html&amp;gt;
   &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I have increased width of input panel to 200% to accommodate more options horizontally. If options wrap to the next row, you would need to increase it further.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3272i0A6BC2D5DAC60BA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333269#M21621</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-26T13:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333270#M21622</link>
      <description>&lt;P&gt;Thank you for your fast answer, it work now, like i want &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333270#M21622</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2017-08-01T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333271#M21623</link>
      <description>&lt;P&gt;@ronpestler1, glad it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333271#M21623</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-01T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333272#M21624</link>
      <description>&lt;P&gt;hi niketnilay,&lt;/P&gt;

&lt;P&gt;i have the same problem but this does not seem to work for me. where should i put the html part? i put it before the filter and after the filter but does not work properly.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 06:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333272#M21624</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2019-10-18T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333273#M21625</link>
      <description>&lt;P&gt;Old thread, but if someone stumbles upon this:&lt;/P&gt;

&lt;P&gt;You have to id the element the css is applied to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input id="input_checkbox" type="checkbox" token="tk_columns"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2019 08:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333273#M21625</guid>
      <dc:creator>infrastructure_</dc:creator>
      <dc:date>2019-11-21T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333274#M21626</link>
      <description>&lt;P&gt;Splunk 7.1.x onwards CSS Selectors for inputs have changed. Refer to answer by @vnravikumar and also the one that I have extended for all Splunk inputs for the right CSS selector. (PS: CSS property will remain the same, just the selectors have changed)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/740606/why-is-the-dropdown-input-width-not-increasing.html?childToView=782825#answer-782825"&gt;https://answers.splunk.com/answers/740606/why-is-the-dropdown-input-width-not-increasing.html?childToView=782825#answer-782825&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 09:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333274#M21626</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-11-21T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox horizontal Value alignment</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333275#M21627</link>
      <description>&lt;P&gt;hi, having the same problem.&lt;BR /&gt;
Not good with css. &lt;BR /&gt;
So i added the id, i tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;title&amp;gt;Bagging by Region&amp;lt;/title&amp;gt;
  &amp;lt;input id="region_id" type="checkbox" token="region" &amp;gt;
    &amp;lt;label&amp;gt;Select Region&amp;lt;/label&amp;gt;
    &amp;lt;choice value="sum(AM) as &amp;amp;quot;AM&amp;amp;quot;"&amp;gt;AM&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="sum(AP) as &amp;amp;quot;AP&amp;amp;quot;"&amp;gt;AP&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="sum(CN) as &amp;amp;quot;CN&amp;amp;quot;"&amp;gt;CN&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="sum(EU) as &amp;amp;quot;EU&amp;amp;quot;"&amp;gt;EU&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="sum(SB) as &amp;amp;quot;SB&amp;amp;quot;"&amp;gt;SB&amp;lt;/choice&amp;gt;
    &amp;lt;choice value="sum(ME) as &amp;amp;quot;ME&amp;amp;quot;"&amp;gt;ME&amp;lt;/choice&amp;gt;
    &amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;html&amp;gt;
    &amp;lt;style&amp;gt;
      .control.shared-controls-syntheticcheckboxcontrol.control-default{
      display: inline-block !important;
      }
      region_id{
       width:auto !important;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but this is still not working &lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 06:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Checkbox-horizontal-Value-alignment/m-p/333275#M21627</guid>
      <dc:creator>chiennylin</dc:creator>
      <dc:date>2020-01-15T06:55:58Z</dc:date>
    </item>
  </channel>
</rss>

