Skip to content

Instantly share code, notes, and snippets.

@mvladic
Last active March 4, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvladic/b7bdbdeb234038ab011d6f4c3050309e to your computer and use it in GitHub Desktop.
Save mvladic/b7bdbdeb234038ab011d6f4c3050309e to your computer and use it in GitHub Desktop.
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