Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148899 | Nov 7,2019 01:15 PM UTC | Nov 12,2019 05:12 AM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: Diagram |
//Initializes the nodes for the diagram
var nodes = [{
id: 'NewIdea', height: 60, offsetX: centerX - 50, offsetY: 80,
//to add custom information
addInfo: {"MyCustomProperty":"startNode"},
}, ];
//Initializes diagram control
var diagram = new ej.diagrams.Diagram({
width: '100%', height: '700px', nodes: nodes,
//get an property at run time in click event
click: function (args){
alert(args.element.addInfo.MyCustomProperty)
}
});
diagram.appendTo('#diagram'); |
function SelectorVMClass() {
. . .
this.customFontSize = 11;
}
function updateText(args, prop, item) {
. . . .
. . . .
case "fontSize":
selectedObject.customFontSize = option.fontSize = Number(args.text.trim());
break;
. . .
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.