summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-07-01 20:22:02 +0530
committerGitHub2016-07-01 20:22:02 +0530
commitf14d3389a63daaf36358fb69730e924d8e5c1e0f (patch)
treeeedb9dbc26a0ca162db6d2fc3f4f3f440907736f /index.html
parent0ba49a5073943fd2ac1a0fc064dab1b8eb62836b (diff)
parentd4a60563097530c60a39ae0dd9bfc75826b255c5 (diff)
downloadxcos-on-web-f14d3389a63daaf36358fb69730e924d8e5c1e0f.tar.gz
xcos-on-web-f14d3389a63daaf36358fb69730e924d8e5c1e0f.tar.bz2
xcos-on-web-f14d3389a63daaf36358fb69730e924d8e5c1e0f.zip
Merge pull request #101 from jiteshjha/display-parameters
Display parameters
Diffstat (limited to 'index.html')
-rw-r--r--index.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/index.html b/index.html
index 5f17cc5..8597b0f 100644
--- a/index.html
+++ b/index.html
@@ -720,9 +720,22 @@
// Uncomment this block to see XML tags work
graph.convertValueToString = function(cell)
{
+
if (mxUtils.isNode(cell.value))
{
- return cell.getAttribute('label', '');
+ var stylesheet = graph.getStylesheet();
+ var style = stylesheet.styles[cell.style];
+ var displayedLabel = style['displayedLabel'];
+ if(displayedLabel != null) {
+ var displayParameter = cell.blockInstance.instance.displayParameter;
+ for(i in displayParameter) {
+ displayedLabel = displayedLabel.replace("%s", displayParameter[i].toString());
+ }
+ return displayedLabel;
+ }
+ else {
+ return cell.getAttribute('label', '');
+ }
}
};