BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
$("#diagram").ejDiagram({
commandManager: {
commands: {
//Command name
"copy": {
//Command handler
canExecute: function copy(args) { return false },
}
}
},
});
jsPlayground link:https://jsplayground.syncfusion.com/sarli221
Regards,
Shyam G
$("#diagram").ejDiagram({
commandManager: {
commands: {
//Command name
"copy": {
//Command handler
canExecute: copying,
}
}
},
});
function copying(args) {
var node = args.model.selectedItems.children[0];
if (node.branch == "root") {
return false;
}
else
{
return true;
}
}
JSPlayground link:https://jsplayground.syncfusion.com/n0pk35ee
Regards,
Shyam G