All Apps and Add-ons

scrollable checkboxlist in splunk

royimad
Builder

I need an example of how to implement a Scrollable box containing a list of Checkboxes in splunk since including the list of checkboxes in a panel is filling more than half of the screen.
Note that I'm using sideview module.
Thanks,

1 Solution

sideview
SplunkTrust
SplunkTrust

Add this param to your Checkboxes module:

<param name="cssClass">scrollableCheckboxes</param>

and add this to application.css:

.scrollableCheckboxes {
    height:50px;
    overflow-y:scroll;
    border:1px solid #ccc;
}

The classname is completely arbitrary - the only important thing is that they match, and that it's not likely a class that already exists in the system. eg: never use a common word like "Table", or "dashboardContent" or some humorously evil things would happen to your page.

Now that the answer's out of the way though, are you sure you wouldn't rather use a multiselect Pulldown?

Or you can test-drive the new "chosen" Pulldown style.

Make your Checkboxes into a multiselect Pulldown and then throw
<param name="mode">advanced</param> into it.

It gives you typeahead into the set of options, the control only takes up space for the options that are selected, and so this might be a better tool for you here than the Checkboxes module.

View solution in original post

sideview
SplunkTrust
SplunkTrust

Add this param to your Checkboxes module:

<param name="cssClass">scrollableCheckboxes</param>

and add this to application.css:

.scrollableCheckboxes {
    height:50px;
    overflow-y:scroll;
    border:1px solid #ccc;
}

The classname is completely arbitrary - the only important thing is that they match, and that it's not likely a class that already exists in the system. eg: never use a common word like "Table", or "dashboardContent" or some humorously evil things would happen to your page.

Now that the answer's out of the way though, are you sure you wouldn't rather use a multiselect Pulldown?

Or you can test-drive the new "chosen" Pulldown style.

Make your Checkboxes into a multiselect Pulldown and then throw
<param name="mode">advanced</param> into it.

It gives you typeahead into the set of options, the control only takes up space for the options that are selected, and so this might be a better tool for you here than the Checkboxes module.

sideview
SplunkTrust
SplunkTrust

Originally released 2.6.3, with some fixes and tweaks since then.

0 Karma

royimad
Builder

Regarding the pulldown advanced mode module is that on the new release of sideview ?

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...