Add form to display layout type to allow setting grid size. Also fix generator's form. (#2274)

This commit is contained in:
Pegah Sarram 2019-01-24 16:03:09 -08:00 committed by Pete Richards
parent 9e811e722f
commit dd31de6935
2 changed files with 27 additions and 4 deletions

View File

@ -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) {

View File

@ -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
}
]
}
}