Splunk Dev

How can I setup page with select?

sistemistiposta
Path Finder

Hello,

   I'm not a javascript expert, but I have found useful examples to build setup pages for app and add-on:

    https://github.com/splunk/splunk-app-examples

These examples show forms with input "text". I see that "textarea" works too.

But I cant' build other input type, such as "select".

How can I add "select" here?

For instance,

 

e("label", null, [
"My label ",
e("input", { type: "select", name: "mytype", options: [
{ label: "File", value: "file" },
{ label: "Folder", value: "folder" },
], onChange: this.handleChange }),
]),

 

doesn't work.

Thank you very much

Kind Regards

Marco

Labels (1)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...