[Fixed Position] Add initial element templates
Add element templates for fixed position elements introduced via the Add button, WTD-880.
This commit is contained in:
@@ -90,6 +90,22 @@
|
|||||||
{
|
{
|
||||||
"key": "fixed.telemetry",
|
"key": "fixed.telemetry",
|
||||||
"templateUrl": "templates/elements/telemetry.html"
|
"templateUrl": "templates/elements/telemetry.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "fixed.box",
|
||||||
|
"templateUrl": "templates/elements/box.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "fixed.line",
|
||||||
|
"templateUrl": "templates/elements/line.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "fixed.text",
|
||||||
|
"templateUrl": "templates/elements/text.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "fixed.image",
|
||||||
|
"templateUrl": "templates/elements/image.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
|
|||||||
2
platform/features/layout/res/templates/elements/box.html
Normal file
2
platform/features/layout/res/templates/elements/box.html
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<div ng-style="{ background: ngModel.fill }">
|
||||||
|
</div>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<img ng-src="ngModel.url" style="width: 100%; height: 100%;"></img>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<div ng-style="{ background: ngModel.fill }">
|
||||||
|
...line...
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<div ng-style="{ background: ngModel.fill }">
|
||||||
|
{{ngModel.text}}
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user