Splunk Enterprise Security

Splunk Dashboard - Single dropdown or input resize

verbal_666
Builder

Taking a cue from this thread,

https://answers.splunk.com/answering/823859/view.html

The code

  <html>
    <style>
      .input-dropdown {
        min-width: XXXpx !important;
        width: XXXpx !important;
        max-width: XXXpx !important;
      }
      .splunk-dropdown .select2-container {
        min-width: XXXpx !important;
        width: XXXpx !important;
        max-width: XXXpx !important;
      }
    </style>
  </html>

Works fine.

But, now, how to take a single dropdown input, not all? Example a dropdown with id="single_dropdown"?

 <input type="dropdown" token="token_to_catch" id="single_dropdown">

I'd like to ask if and how it was possible to resize a single input object from the dashboard xml.

Thanks.

Labels (1)
0 Karma
1 Solution

vnravikumar
Champion

Hi

Try with id in CSS

 <style>
       #single_dropdown .input-dropdown {

       }
      #single_dropdown .splunk-dropdown .select2-container {

       }
     </style>

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Try with id in CSS

 <style>
       #single_dropdown .input-dropdown {

       }
      #single_dropdown .splunk-dropdown .select2-container {

       }
     </style>
0 Karma

verbal_666
Builder

GREAT!!!
Perfectly working.
Many many thanks.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...