<?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: Splunk 6 dropdown menu - decrease width in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169846#M10453</link>
    <description>&lt;P&gt;excellent! this worked. thx!!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2013 19:47:30 GMT</pubDate>
    <dc:creator>carmackd</dc:creator>
    <dc:date>2013-12-06T19:47:30Z</dc:date>
    <item>
      <title>Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169844#M10451</link>
      <description>&lt;P&gt;I'm trying to decrease the width of my drop down menus on a form I'm creating.  According to the web framework documentation, I can adjust this using the width property for the DropdownInput object after converting my dashboard to HTML. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/WebFramework"&gt;http://docs.splunk.com/Documentation/WebFramework&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, after doing so it seems I can only increase the width, not decrease below default of 200.  Is this expected behavior? Is there another way I can decrease the size of width?  &lt;/P&gt;

&lt;P&gt;CSS works for text boxes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#field1 input {width:150px;}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but not for the select HTML tag&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#field2 select {width:150px;}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Dec 2013 14:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169844#M10451</guid>
      <dc:creator>carmackd</dc:creator>
      <dc:date>2013-12-06T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169845#M10452</link>
      <description>&lt;P&gt;The WebFramework uses the jQuery-based Select2 Dropdown, which comes with its own set of CSS requirements.  It looks to me that the authors of Select2 have chosen to enforce a CSS min-width of 200px in their CSS, right there in line 6 of their CSS file:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;.select2-container{min-width:200px;margin-bottom:8px;}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You could override this by setting the min-width for the container object after the Select2 objects have been loaded:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;#field2 .select2-container{ min-width: 150px; }&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Doing this will &lt;EM&gt;allow&lt;/EM&gt; your dropdowns to be 150px wide; you will still have to set the width on the control itself. &lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 16:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169845#M10452</guid>
      <dc:creator>kensternberg</dc:creator>
      <dc:date>2013-12-06T16:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169846#M10453</link>
      <description>&lt;P&gt;excellent! this worked. thx!!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 19:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169846#M10453</guid>
      <dc:creator>carmackd</dc:creator>
      <dc:date>2013-12-06T19:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169847#M10454</link>
      <description>&lt;P&gt;Can you share the name of the .css file were we have to override the function or make the mentioned changes.&lt;/P&gt;

&lt;P&gt;Hi carmackd,&lt;BR /&gt;
can you also share the html code to increase the width of dropdown&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 06:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169847#M10454</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2014-02-06T06:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169848#M10455</link>
      <description>&lt;P&gt;I was able to increase the size of a multi-select with the following CSS and ID association.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;input id="ms" type="multiselect" token="token_name"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the CSS section:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    #ms.input.input-multiselect{ width: 400px !important; }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jul 2018 22:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169848#M10455</guid>
      <dc:creator>andygerber</dc:creator>
      <dc:date>2018-07-03T22:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169849#M10456</link>
      <description>&lt;P&gt;@andygerber its worked perfectly &lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 12:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/169849#M10456</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2018-12-19T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk 6 dropdown menu - decrease width</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/583646#M47826</link>
      <description>&lt;P&gt;does this works for splunk 8.2.0 version?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 20:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-6-dropdown-menu-decrease-width/m-p/583646#M47826</guid>
      <dc:creator>AnilPujar</dc:creator>
      <dc:date>2022-02-03T20:30:09Z</dc:date>
    </item>
  </channel>
</rss>

