mirror of
https://github.com/nasa/openmct.git
synced 2025-01-03 03:46:42 +00:00
363a6f6b47
Add a type for composite controls, to allow populating arrays (e.g. preferred size). WTD-593.
65 lines
2.5 KiB
JSON
65 lines
2.5 KiB
JSON
{
|
|
"name": "Layout components.",
|
|
"description": "Plug in adding Layout capabiltiies.",
|
|
"extensions": {
|
|
"types": [
|
|
{
|
|
"key": "telemetry.panel",
|
|
"name": "Telemetry Panel",
|
|
"glyph": "t",
|
|
"description": "A panel for collecting telemetry elements.",
|
|
"delegates": [ "telemetry" ],
|
|
"features": "creation",
|
|
"model": { "composition": [] },
|
|
"properties": [
|
|
{
|
|
"name": "Preferred Size",
|
|
"control": "composite",
|
|
"items": [
|
|
{
|
|
"name": "Width (px)",
|
|
"control": "textfield",
|
|
"pattern": "^(\\d*[1-9]\\d*)?$"
|
|
},
|
|
{
|
|
"name": "Height (px)",
|
|
"control": "textfield",
|
|
"pattern": "^(\\d*[1-9]\\d*)?$"
|
|
}
|
|
],
|
|
"property": "preferredSize",
|
|
"conversion": "number[]"
|
|
},
|
|
{
|
|
"name": "Layout Grid",
|
|
"control": "composite",
|
|
"items": [
|
|
{
|
|
"name": "Horizontal grid (px)",
|
|
"control": "textfield",
|
|
"pattern": "^(\\d*[1-9]\\d*)?$"
|
|
},
|
|
{
|
|
"name": "Vertical grid (px)",
|
|
"control": "textfield",
|
|
"pattern": "^(\\d*[1-9]\\d*)?$"
|
|
}
|
|
],
|
|
"property": "layoutGrid",
|
|
"conversion": "number[]"
|
|
},
|
|
{
|
|
"name": "Default View",
|
|
"control": "select",
|
|
"options": [
|
|
{ "name": "Plot", "value": "plot" },
|
|
{ "name": "Scrolling", "value": "scrolling" }
|
|
],
|
|
"comment": "TODO: Infer values from type",
|
|
"key": "defaultView"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |