summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js
diff options
context:
space:
mode:
authorXiuchao Wu <xiuchao.wu@huawei.com>2016-09-27 15:42:46 +0100
committerXiuchao Wu <xiuchao.wu@huawei.com>2016-09-27 15:42:46 +0100
commit4a106d3cf7ef0ac4e98ae80a10affaee25a4c6ef (patch)
tree9e42feb9e744d8f618a72ba279b9fdd8a087a093 /openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js
parent39f5d1505b03efcc7ab6abfe9fcc374885ec5ea9 (diff)
add icons needed by topology rendering, add code for loading data from
overlay micro-services, and show more details when a node is clicked. Change-Id: I15335650d77aba6ac7fd1b5ab19c6bef94026d9c Signed-off-by: Xiuchao Wu <xiuchao.wu@huawei.com>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js
index 8215c3c5..efb80b03 100644
--- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js
+++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/topo/Node.js
@@ -16,11 +16,16 @@
var icon = {
device_icon : "images/topo/NEUP.png",
sfc_device_icon : "images/topo/OTHER_3.png",
+ site_icon : "images/topo/site.png",
network_icon : "images/topo/NETWORK.png"
}
-function Node(id, label, size, type, x, y) {
+
+/* when node is clicked, details will be displayed in the label. */
+function Node(id, label, details, size, type, x, y) {
this.id = id;
this.label = label;
+ this.brief = label;
+ this.details = details;
this.type = "square";
this.x = x;
this.y = y;