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!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...