Dashboards & Visualizations

dropdown, radio,multiselect,time picker and buttons to align in a single horizontal line

DataOrg
Builder

I have a mutiple inputs form in a dashboard but it gets extends to new line for someinputs.
i need to align all inputs on a single horizontal line.

0 Karma
1 Solution

@premranjithj can you please add a screenshot of what is the issue you are facing? Also what do you want to do when the inputs can't be accommodated in the same row? Do you want to reduce input width or do you want to have scrollbar to the right?

Here is a previous answer on similar lines. Not sure if this is same requirement for you as well: https://answers.splunk.com/answers/789054/how-to-fix-the-dashboard-layout-irrespective-of-th.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Try this css

 <row depends="$hide$">
    <panel>
      <html>
        <style>
          div[data-view="views/dashboard/form/GlobalFieldset"] {
           display:inline-block !important;
           white-space: nowrap !important;
          }
        </style>
      </html>
    </panel>
  </row>

As @niketnilay said please add the screenshot.

0 Karma

@premranjithj can you please add a screenshot of what is the issue you are facing? Also what do you want to do when the inputs can't be accommodated in the same row? Do you want to reduce input width or do you want to have scrollbar to the right?

Here is a previous answer on similar lines. Not sure if this is same requirement for you as well: https://answers.splunk.com/answers/789054/how-to-fix-the-dashboard-layout-irrespective-of-th.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

DataOrg
Builder

The link works for my requirement.

0 Karma

@premranjithj I have converted my comment to answer. Please accept if your issue is resolved.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

efavreau
Motivator

When we needed all our radios to go horizontal instead of vertical, we added an id to the radio input, then added some custom CSS into our simple XML dashboard that leveraged that id. This should give you a basis to build from.

Edit your dashboard and edit the simple xml to add an id to your radio input. Example:

<input type="radio" token="mytoken" id="myradio">

Here's the panel for the custom inline CSS to leverage that label:

  <row depends="$alwaysHideCSS$">
    <panel>
      <html>
         <style>
            #myradio {
                width: 100%;
            }
            #myradio label {
                white-space: nowrap;
            }
            #myradio.splunk-radiogroup div[role=radiogroup] {
                flex-direction: row;
                flex-wrap: wrap;
            }
            #myradio.splunk-radiogroup div[role=radiogroup] div {
                margin-right: 20px;
            }
         </style>
       </html>
    </panel>
  </row>
###

If this reply helps you, an upvote would be appreciated.
0 Karma

DataOrg
Builder

@efavreau this will not server my purpose.
i want all inputs forms like mutitselect,radio,dropdown to align in same row instead of 2 rows horizontal due to space constraints

0 Karma
Get Updates on the Splunk Community!

Ready, Set, SOAR: How Utility Apps Can Up Level Your Playbooks!

 WATCH NOW Powering your capabilities has never been so easy with ready-made Splunk® SOAR Utility Apps. Parse ...

DevSecOps: Why You Should Care and How To Get Started

 WATCH NOW In this Tech Talk we will talk about what people mean by DevSecOps and deep dive into the different ...

Introducing Ingest Actions: Filter, Mask, Route, Repeat

WATCH NOW Ingest Actions (IA) is the best new way to easily filter, mask and route your data in Splunk® ...