mirror of
https://github.com/nasa/openmct.git
synced 2025-01-07 21:58:44 +00:00
39b3e6c4a9
[Edit Mode] Edit mode on objects that do not have a view supporting editing should edit properties instead. #320
38 lines
1.2 KiB
JSON
38 lines
1.2 KiB
JSON
{
|
|
"extensions": {
|
|
"types": [
|
|
{
|
|
"key": "example.page",
|
|
"name": "Web Page",
|
|
"glyph": "\u00EA",
|
|
"description": "A component to display a web page or image with a valid URL. Can be added to a Display Layout.",
|
|
"features": [ "creation" ],
|
|
"properties": [
|
|
{
|
|
"key": "url",
|
|
"name": "URL",
|
|
"control": "textfield",
|
|
"pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$",
|
|
"required": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"views": [
|
|
{
|
|
"templateUrl": "iframe.html",
|
|
"name": "Page",
|
|
"type": "example.page",
|
|
"key": "example.page",
|
|
"editable": false
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "EmbeddedPageController",
|
|
"implementation": "EmbeddedPageController.js",
|
|
"depends": ["$sce"]
|
|
}
|
|
]
|
|
}
|
|
} |