-
{{body}}
+
+
{{body}}
{{subject}}
{{timestamp}}
-
- {{roomId}}
+
+
+ This room {{subject}},
+ created by {{roomOwner}} has:
+ {{_howMany(roomShape, 0)}} views ({{roomViews}}),
+ {{_howMany(roomShape, 1)}} comments ({{comments}}) and
+ {{_howMany(roomShape, 2)}} datasets ({{datasets}}).
@@ -75,6 +108,16 @@
value : ""
},
+ roomOwner : {
+ type : String,
+ value : ""
+ },
+
+ roomShape : {
+ type : Array,
+ value : undefined
+ },
+
body : {
type : String,
value : ""
@@ -90,7 +133,7 @@
value : ""
},
- openData : {
+ roomViews : {
type : Number,
value : undefined
},
@@ -98,31 +141,31 @@
comments : {
type : Number,
value : undefined
+ },
+
+ datasets : {
+ type : Number,
+ value : undefined
}
},
attached : function() {
- var room = document.getElementById(this.roomId);
- $(room).css('background', this.roomColor);
+ console.log(this.views);
},
_showTooltip: function() {
-
- var room = document.getElementById(this.roomId);
- var pos = room.getBoundingClientRect();
- console.log(pos.top);
- console.log(pos.left);
-// $(this.$.pippo).css("top", 1000);
-// $(this.$.pippo).css("left", 100);
-// $("#pippo").css("top", pos.top - 4);
-// $("#pippo").css("left", pos.left - 4);
- this.$.pippo.open();
+ this.$.room_info.open();
},
_hideTooltip: function() {
- this.$.pippo.close();
- console.log("eeeeeeeeeeeeeeeeee")
+ this.$.room_info.close();
+ },
+
+ _howMany: function(A, i) {
+// return this.roomShape[i];
+// console.log(i);
+ return A[i];
}
});