Last active
March 4, 2019 09:58
-
-
Save mvladic/b7bdbdeb234038ab011d6f4c3050309e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var defaultValues = { | |
startFrequency: 1234, | |
selectedOption: "opt2" | |
}; | |
var values = await input({ | |
title: "Enter Start Frequency", | |
fields: [ | |
{ | |
name: "startFrequency", | |
displayName: "Start frequency", | |
type: "number" | |
}, | |
{ | |
name: "selectedOption", | |
type: "enum", | |
enumItems: [ | |
{ | |
id: "opt1", | |
label: "Option 1" | |
}, | |
{ | |
id: "opt2", | |
label: "Option 2" | |
}, | |
{ | |
id: "opt3", | |
label: "Option 3" | |
} | |
] | |
} | |
] | |
}, defaultValues); | |
console.log(values); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment