diff --git a/example/generator/plugin.js b/example/generator/plugin.js index b7026cf998..66a7c76d76 100644 --- a/example/generator/plugin.js +++ b/example/generator/plugin.js @@ -43,15 +43,14 @@ define([ form: [ { name: "State Duration (seconds)", - control: "textfield", + control: "numberfield", cssClass: "l-input-sm l-numeric", key: "duration", required: true, property: [ "telemetry", "duration" - ], - pattern: "^\\d*(\\.\\d*)?$" + ] } ], initialize: function (object) { diff --git a/src/plugins/displayLayout/DisplayLayoutType.js b/src/plugins/displayLayout/DisplayLayoutType.js index 0d3b8b84f9..7f9289dd6e 100644 --- a/src/plugins/displayLayout/DisplayLayoutType.js +++ b/src/plugins/displayLayout/DisplayLayoutType.js @@ -33,7 +33,31 @@ define(function () { items: [], layoutGrid: [10, 10], }; - } + }, + form: [ + { + name: "Horizontal grid (px)", + control: "numberfield", + cssClass: "l-input-sm l-numeric", + property: [ + "configuration", + "layoutGrid", + 0 + ], + required: true + }, + { + name: "Vertical grid (px)", + control: "numberfield", + cssClass: "l-input-sm l-numeric", + property: [ + "configuration", + "layoutGrid", + 1 + ], + required: true + } + ] } }