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!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...