mirror of
https://github.com/nasa/openmct.git
synced 2025-05-18 16:33:20 +00:00
[Layout] Initial layout templates
Bring over and perform initial transition of templates for the Layout view. WTD-535.
This commit is contained in:
parent
e1ba2487b3
commit
cbb77f0a14
@ -2,6 +2,21 @@
|
|||||||
"name": "Layout components.",
|
"name": "Layout components.",
|
||||||
"description": "Plug in adding Layout capabiltiies.",
|
"description": "Plug in adding Layout capabiltiies.",
|
||||||
"extensions": {
|
"extensions": {
|
||||||
|
"views": [
|
||||||
|
{
|
||||||
|
"key": "layout",
|
||||||
|
"name": "Layout",
|
||||||
|
"glyph": "L",
|
||||||
|
"type": "layout",
|
||||||
|
"templateUrl": "templates/layout.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"representations": [
|
||||||
|
{
|
||||||
|
"key": "frame",
|
||||||
|
"templateUrl": "templates/frame.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"key": "layout",
|
"key": "layout",
|
||||||
|
20
platform/features/layout/res/templates/frame.html
Normal file
20
platform/features/layout/res/templates/frame.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<div class="frame frame-template abs" ng-controller="ViewSwitcherController">
|
||||||
|
<div class="bar abs object-header object-top-bar">
|
||||||
|
<div class="title left abs">
|
||||||
|
<mct-representation key="'node'"
|
||||||
|
mct-object="domainObject">
|
||||||
|
</mct-representation>
|
||||||
|
</div>
|
||||||
|
<div class="btn-bar right abs">
|
||||||
|
<mct-include key="'switcher'"
|
||||||
|
ng-model="switcher"
|
||||||
|
ng-if="switcher.options.length > 0">
|
||||||
|
</mct-include>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="abs object-holder">
|
||||||
|
<mct-representation key="switcher.key"
|
||||||
|
mct-object="domainObject">
|
||||||
|
</mct-representation>
|
||||||
|
</div>
|
||||||
|
</div>
|
9
platform/features/layout/res/templates/layout.html
Normal file
9
platform/features/layout/res/templates/layout.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<div style="width: 100%; height: 100%;">
|
||||||
|
|
||||||
|
<span style="left: 45px; width: 360px; top: 60px; height: 240px">
|
||||||
|
<mct-representation key="'frame'"
|
||||||
|
mct-object="domainObject">
|
||||||
|
</mct-representation>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user