room-controllet.html
1.66 KB
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
74
75
76
77
78
79
80
81
<link rel="import" href="../../bower_components/polymer/polymer.html" />
<dom-module id="room-controllet">
<template>
<style is="custom-style">
.cos {
height: 400px;
width: 400px;
background-color: red;
}
</style>
<div class=" cos grid-item">
<div class="room-body"><span>{{body}}</span></div>
<div class="room-subject"><span>{{subject}}</span></div>
<div class="room-timestamp">{{timestamp}}</div>
</div>
</template>
<script>
Polymer({
is : 'room-controllet',
properties : {
body : {
type : String,
value : ""
},
subject : {
type : String,
value : ""
},
timestamp : {
type : String,
value : ""
},
color : {
type : String,
value : ""
},
openData : {
type : Number,
value : 0
},
comments : {
type : Number,
value : 0
},
roomHeight : {
type : Number,
value : 0
},
roomWidth : {
type : Number,
value : 0
}
},
attached : function() {
}
});
</script>
</dom-module>