I am trying to changge the color of the SubGraphExpanderButton on certain events. I can do this with other parts of my node with code like this:
shp = node.findObject(NODE_SHAPE);
if (shp !== null) {
shp.fill = fillColor;
}
However, I haven’t had success with this code for SubGraphExpanderButton:
var shp = group.findObject("SubGraphExpanderButton");
if (shp !== null) {
shp.fill = "red";
}
Thanks in advance!