mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 14:32:22 +00:00
6a6797bf53
Handle the ng-required flag in composite controls. WTD-593.
63 lines
2.4 KiB
JSON
63 lines
2.4 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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |