mirror of
https://github.com/nasa/openmct.git
synced 2025-02-06 11:09:21 +00:00
Add form to display layout type to allow setting grid size. Also fix generator's form. (#2274)
This commit is contained in:
parent
9e811e722f
commit
dd31de6935
@ -43,15 +43,14 @@ define([
|
|||||||
form: [
|
form: [
|
||||||
{
|
{
|
||||||
name: "State Duration (seconds)",
|
name: "State Duration (seconds)",
|
||||||
control: "textfield",
|
control: "numberfield",
|
||||||
cssClass: "l-input-sm l-numeric",
|
cssClass: "l-input-sm l-numeric",
|
||||||
key: "duration",
|
key: "duration",
|
||||||
required: true,
|
required: true,
|
||||||
property: [
|
property: [
|
||||||
"telemetry",
|
"telemetry",
|
||||||
"duration"
|
"duration"
|
||||||
],
|
]
|
||||||
pattern: "^\\d*(\\.\\d*)?$"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
initialize: function (object) {
|
initialize: function (object) {
|
||||||
|
@ -33,7 +33,31 @@ define(function () {
|
|||||||
items: [],
|
items: [],
|
||||||
layoutGrid: [10, 10],
|
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
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user