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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...