2015-04-23 21:04:03 +00:00
|
|
|
{
|
|
|
|
"extensions": {
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"key": "example.page",
|
2015-04-28 21:28:17 +00:00
|
|
|
"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.",
|
2015-04-23 21:04:03 +00:00
|
|
|
"features": [ "creation" ],
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"key": "url",
|
|
|
|
"name": "URL",
|
2015-04-27 21:50:14 +00:00
|
|
|
"control": "textfield",
|
|
|
|
"pattern": "^(ftp|https?)\\:\\/\\/\\w+(\\.\\w+)*(\\:\\d+)?(\\/\\S*)*$",
|
|
|
|
"required": true
|
2015-04-23 21:04:03 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"views": [
|
|
|
|
{
|
|
|
|
"templateUrl": "iframe.html",
|
|
|
|
"name": "Page",
|
|
|
|
"type": "example.page",
|
|
|
|
"key": "example.page"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"controllers": [
|
|
|
|
{
|
2015-04-28 21:28:17 +00:00
|
|
|
"key": "EmbeddedPageController",
|
|
|
|
"implementation": "EmbeddedPageController.js",
|
2015-04-23 21:04:03 +00:00
|
|
|
"depends": ["$sce"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|