BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//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;
. . .
} |