mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 01:48:51 +00:00
328a19f040
Fix properties for the sine wave generator (an example bundle) such that it displays appropriately in the Create menu after integration of the forms component, WTD-593.
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "Sine Wave Generator",
|
|
"description": "Example of a component that produces dataa.",
|
|
"extensions": {
|
|
"components": [
|
|
{
|
|
"implementation": "SinewaveTelemetryProvider.js",
|
|
"type": "provider",
|
|
"provides": "telemetryService",
|
|
"depends": [ "$q", "$timeout" ]
|
|
}
|
|
],
|
|
"types": [
|
|
{
|
|
"key": "generator",
|
|
"name": "Sine Wave Generator",
|
|
"glyph": "T",
|
|
"description": "A sine wave generator",
|
|
"model": {
|
|
"telemetry": {
|
|
"period": 10
|
|
}
|
|
},
|
|
"telemetry": {
|
|
"source": "generator"
|
|
},
|
|
"properties": [
|
|
{
|
|
"name": "Period",
|
|
"control": "textfield",
|
|
"key": "period",
|
|
"required": true,
|
|
"property": [ "telemetry", "period" ],
|
|
"pattern": "^\\d*(\\.\\d*)?$"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |