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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...