Hi Maverick
Thanks for using Syncfusion products.
Please note that you can set the color for the node at runtime using
updateNode API method to achieve your requirement. However we have created a sample in which we have set an color for the node in the click event. please refer the code snippet and sample below.
Code snippet:
$("#diagram").ejDiagram({
//define click event
click:click,
});
function click() {
var diagram = $("#diagram").ejDiagram("instance");
var node = diagram.selectionList[0];
if (node) {
diagram.updateNode(node.name, { fillColor: "red" });
}
}
Sample:http://www.syncfusion.com/downloads/support/forum/119671/ze/simplesample-2079189896
Please let me know if any concerns.
Regards,
Shyam G