BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
//define nodeCollectionChange event
nodeCollectionChange:nodeCollectionChange,
});
function nodeCollectionChange(args) {
if (args && args.element) {
for (i = 0; i < args.element.labels.length; i++) {
args.element.labels[i].text = "1 cm";
}
}
}
function updateLabel() {
var diagram = $("#diagram").ejDiagram("instance");
var node = diagram.model.selectedItems.children[0];
if (node) {
//update the label at runtime
diagram.updateLabel(node.name, node.labels[0], { text: "2cm" });
}
}
JSPlayground link:http://jsplayground.syncfusion.com/oujc30b3
Regards,
Shyam G