-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
73 lines (73 loc) · 2.5 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="./row-adder.html">
<link rel="import" href="./demo-el.html">
<style>
html, body {
margin: 0;
padding: 0;
}
.container {
margin: 20px;
}
row-adder {
border: 1px solid rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container">
<template is="dom-bind" id="Demo">
<row-adder
el-name$="[[elName]]"
in-edit-mode$="[[inEditMode]]"
component-properties$="[[componentProperties]]">
</row-adder>
</template>
</div>
<script>
Demo.elName = 'demo-el';
Demo.inEditMode = 'true';
Demo.componentProperties = [
{
name: 'display',
value: [
{ name: 'gridColumnStart',
value: 1,
type: 'text',
description: 'The start column location of this component'
},
{ name: 'gridColumnEnd',
value: 1,
type: 'text',
description: 'The end column location of this component'
},
{ name: 'gridRowStart',
value: 1,
type: 'text',
description: 'The start row location of this component'
},
{ name: 'gridRowEnd',
value: 1,
type: 'text',
description: 'The end row location of this component'
}
]
},
{
name: 'Component Properties',
value: [
{
name: 'productName',
value: 'Some Product Name',
type: 'text',
description: 'The name of the product that needs to be displayed'
}
]
}
];
</script>
</body>
</html>