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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...