Dashboards & Visualizations

Is it possible to position radio buttons horizontally

gjaya
Engager

PUTTING RADIO BUTTON IN HORIZOTALLY WAY IN SPLUNK POSSIBLE OR NOT?

yvassilyeva
Path Finder

gjaya If you would to achieve something like this:
radioButtons.png

You can do the following:

 

  <row>
    <panel>
        <input type="radio" token="sorttoken2" id="radio">
        <label>Sort By:</label>
        <choice value="button1">Button 1</choice>
        <choice value="button2">Button 2</choice>
        <choice value="button3">Button 3</choice>
        <default>button1</default>
        <initialValue>button1</initialValue>
      </input>

      <html>
        <style>
          #radio div[data-test="radio-list"]{
           display: inline;
          }  

          #radio div[data-test="option"]{
            display: inline;
            margin-top: 0px;
            margin-right: 10px;
            margin-bottom: 0px;
            margin-left: 0px
          } 
          #radio {
            width:30%;
          }
        </style>
      </html>
      </panel>
</row>

 

 

0 Karma

dart
Splunk Employee
Splunk Employee

Splunk dashboards are HTML, and you can have custom css in your application.css file for a Splunk app, so you can style any elements exactly how you like.

0 Karma

nick405060
Motivator

Care to elaborate..?

0 Karma
Get Updates on the Splunk Community!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...