<?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 to decrease the size of filter button based on filter value text size in dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397535#M45305</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you post a sample screen shot?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 04:46:20 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-07-16T04:46:20Z</dc:date>
    <item>
      <title>how to decrease the size of filter button based on filter value text size in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397534#M45304</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I want to make the filter buttons on dashboard smaller to fit the text size(filtervalues) , so that all filter buttons comes in one line.&lt;BR /&gt;
Is there any way to achieve this? &lt;BR /&gt;
Please let me know.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 04:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397534#M45304</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-07-16T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to decrease the size of filter button based on filter value text size in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397535#M45305</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you post a sample screen shot?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 04:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397535#M45305</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-16T04:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to decrease the size of filter button based on filter value text size in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397536#M45306</link>
      <description>&lt;P&gt;I am unable to attach screenshot. I can explain.&lt;BR /&gt;
For example: &lt;BR /&gt;
There is multiselect input filter of support group which has values L1 L2 L3 , this values are of only two letters , but input filter button is too large as per filter value.&lt;BR /&gt;
Can we decrease the button size in dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 06:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397536#M45306</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-07-17T06:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to decrease the size of filter button based on filter value text size in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397537#M45307</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this and adjust the width as per your need&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="size.js"&amp;gt;
  &amp;lt;label&amp;gt;multiselect&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="multiselect" token="field1" id="rk"&amp;gt;
      &amp;lt;label&amp;gt;field1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="L1"&amp;gt;L1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="L2"&amp;gt;L2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="L3"&amp;gt;L3&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="field2"&amp;gt;
      &amp;lt;label&amp;gt;field2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="fdgsfdg"&amp;gt;dfsdf6575675675675&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row depends="$hide$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
       &amp;lt;style&amp;gt;

            #rk div[data-component="splunk-core:/splunkjs/mvc/components/MultiDropdown"]{
            width:70px !important;
            }
       &amp;lt;/style&amp;gt;
     &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;js:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'jquery',
'splunkjs/mvc',
'splunkjs/mvc/simplexml/ready!'
], function($, mvc){
    $( "#rk" ).click(function() {
        $('[class*="ResultsMenuStyles"]').each(function() {
             $(this).attr('style','width:70px');
        });
      });

});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 04:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397537#M45307</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-18T04:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to decrease the size of filter button based on filter value text size in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397538#M45308</link>
      <description>&lt;P&gt;@vnravikumar Thank you for the solution. &lt;BR /&gt;
Instead of updating in js , i have added below part in my source code. And it worked.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     &amp;lt;html&amp;gt;
       &amp;lt;style&amp;gt;
                       #rk {
   min-width: 160px !important;
   width: 160px !important;
   max-width: 160px !important;
 }
 #rk .splunk-multidropdown .select2-container {
   min-width: 160px !important;
   width: 160px !important;
   max-width: 160px !important;
   }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 17:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397538#M45308</guid>
      <dc:creator>avni26</dc:creator>
      <dc:date>2019-07-19T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to decrease the size of filter button based on filter value text size in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397539#M45309</link>
      <description>&lt;P&gt;cool. If my solution helps you, please upvote.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 17:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-decrease-the-size-of-filter-button-based-on-filter-value/m-p/397539#M45309</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-19T17:22:04Z</dc:date>
    </item>
  </channel>
</rss>

