I'm trying to change the node properties (such as color or border width) from the click event.
So far I've programmed a click handler:
function handleDiagramClick(args) {
if (args.actualObject.type !== 'bpmn') {
// Some of my irrelevant logic is here...
return;
}
// Here I'd like to set node properties
}
I see that args contain property object and actualObject - which one should I update? How do I make the diagram refresh with my changes? Can I use hex colors? If not, what is permitted list of colors that are passed as string (for instance 'darkcyan', 'black')?