Skip to content

Commit ff6e312

Browse files
committed
Added standard headers
1 parent b7e8fc0 commit ff6e312

6 files changed

+62
-13
lines changed

all-imports.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<!--
2+
HTML/Template file: all-imports.html
3+
purpose: Imports all elements for demo
4+
Copyright(C) 2017 friendlyGIS GmbH,
5+
Gerhard Höger-Hansen, Germany
6+
http://www.friendlygis.com
7+
info@friendlygis.com
8+
https://github.com/GerhardHH
9+
----
10+
Description:
11+
12+
-->
113
<link rel="import" href="./e2u-behaviors.html">
214
<link rel="import" href="./e2u-json-object-editor.html">
315
<link rel="import" href="./e2u-json-array-editor.html">

e2u-behaviors.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<!--
2-
Defines behaviors usable for Energy2Use (namespace e2uBehaviors).
3-
2+
HTML/Template file: e2u-behaviors.html
3+
purpose: Defines behaviors usable for Energy2Use (namespace e2uBehaviors)
4+
Copyright(C) 2017 friendlyGIS GmbH,
5+
Gerhard Höger-Hansen, Germany
6+
http://www.friendlygis.com
7+
info@friendlygis.com
8+
https://github.com/GerhardHH
9+
----
10+
Description:
411
Especially, holds methods to create GUI elements for the array
512
elements and helpers to handle the JSON schema.
6-
7-
8-
913
-->
10-
1114
<script>
1215
// initialize behavior namespace if it not yet exists
1316
window.E2uBehaviors = window.E2uBehaviors || {};

e2u-json-array-editor.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<!--
2+
HTML/Template file: e2u-json-array-editor.html
3+
purpose: Edit array based on JSON schema
4+
Copyright(C) 2017 friendlyGIS GmbH,
5+
Gerhard Höger-Hansen, Germany
6+
http://www.friendlygis.com
7+
info@friendlygis.com
8+
https://github.com/GerhardHH
9+
----
10+
Description:
11+
see below
12+
-->
113
<link rel="import" href="../polymer/polymer.html">
214
<link rel="import" href="../paper-input/paper-input.html" />
315
<link rel="import" href="../paper-icon-button/paper-icon-button.html" />
@@ -52,7 +64,7 @@
5264
the index found, we do a splice on value which triggers a splice on objArray
5365
which does the rest.
5466
- while entering data, all flow is controlled via the _objArrayChanged(objArray.*)
55-
observer, updating the corresponding elements.
67+
observer, updating the corresponding elements.
5668
5769
NOTE: The dependency mechanisms of Polymer do not support arrays of primitive
5870
values like Strings etc. Therefore, if an array is defined as such, it is

e2u-json-object-editor.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<!--
2+
HTML/Template file: e2u-json-object-editor.html
3+
purpose: Polymer element to edit an object based on JSON Schema
4+
Copyright(C) 2017 friendlyGIS GmbH,
5+
Gerhard Höger-Hansen, Germany
6+
http://www.friendlygis.com
7+
info@friendlygis.com
8+
https://github.com/GerhardHH
9+
----
10+
Description:
11+
see below.
12+
-->
113
<link rel="import" href="../polymer/polymer.html">
214
<link rel="import" href="../paper-input/paper-input.html" />
315
<link rel="import" href="../iron-flex-layout/iron-flex-layout-classes.html">

e2u-test-editor.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<!--
2+
HTML/Template file: e2u-test-editor.html
3+
purpose: Provide test environment for demo
4+
Copyright(C) 2017 friendlyGIS GmbH,
5+
Gerhard Höger-Hansen, Germany
6+
http://www.friendlygis.com
7+
info@friendlygis.com
8+
https://github.com/GerhardHH
9+
----
10+
Description:
11+
Simply provides schema and value data and uses the
12+
e2u-json-object-editor to show it. Provides a text display
13+
of the resulting object and buttons to update in both directions.
14+
-->
115
<link rel="import" href="../polymer/polymer.html">
216

317
<link rel="import" href="../iron-demo-helpers/demo-pages-shared-styles.html">
@@ -138,18 +152,13 @@
138152
notify: true,
139153
value: function() {
140154
return {
141-
"birthday": "1962-12-31",
142155
"company": "friendlyGIS GmbH",
143156
"name": {
144157
"firstName": "Gerhard",
145158
"lastName": "Höger-Hansen"
146159
},
147160
"email": "info@friendlygis.com",
148-
"phoneNumbers": [{
149-
"type": "geschäftlich",
150-
"phoneNumber": "+49 5241 942458"
151-
}],
152-
"comment": "Hier kann man\nmehrzeilige Eingaben\nmachen!"
161+
"comment": "This text uses paper-textarea thus\nallowing us\nmultiline data!"
153162
};
154163
}
155164
},

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<!doctype html>
23
<html>
34
<head>

0 commit comments

Comments
 (0)