We currently have a group template that runs a function when a part is added or removed from it, the function generates some label data from the children which is then added to the groups data to be rendered in the diagram. The jist of this function is it iterates over its member parts gets the names of all the parts from the part data and then builds a name string with this data which is then displayed as part of the group template in a textbox.
This works fine when adding and removing nodes from the group, however if any of the parts are updated (e.g. their name gets changed) the group label does not update. Is there a way of having this function run when any of the groups members update so that the group label reflects its members?