Skip to content

Commit

Permalink
Simulated Device Preferences: Fixed type of 'number' input
Browse files Browse the repository at this point in the history
The number input type was 'integer' but that's not a valid type of a device
preference. Fixed that and also added some additional number preferences
with different types of ranges.
  • Loading branch information
tpmanley committed Nov 4, 2019
1 parent b669de3 commit 55bdffc
Showing 1 changed file with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,29 @@ metadata {
displayDuringSetup: false,
type: "paragraph",
element: "paragraph")
input("intInput", "integer",
title: "Integer Title",
description: "Integer Description",
input("numInput", "number",
title: "Number Title (range 1-10)",
description: "Number Description (range 1-10)",
defaultValue: 5,
range: "1..10",
required: false)
input("numInput2", "number",
title: "Number Title (range -10-10)",
description: "Number Description (range -10-10)",
defaultValue: 5,
range: "-10..10",
required: false)
input("numInput3", "number",
title: "Number Title (range *..*)",
description: "Number Description (range *..*)",
defaultValue: 5,
range: "*..*",
required: false)
input("numInput4", "number",
title: "Number Title (no range)",
description: "Number Description (no range)",
defaultValue: 5,
required: false)
input("decInput", "decimal",
title: "Decimal Title",
description: "Decimal Description",
Expand Down Expand Up @@ -111,7 +128,10 @@ def updated() {
enumInput: enumInput,
enumInput2: enumInput2,
enumInput3: enumInput3,
intInput: intInput,
numInput: numInput,
numInput2: numInput2,
numInput3: numInput3,
numInput4: numInput4,
passInput: passInput,
textInput: textInput
]
Expand Down

0 comments on commit 55bdffc

Please sign in to comment.