Hello!
I am developing an application, where the user can dynamically add components to his dashboard and that also implies that there can be several instances of GoJS Diagram Components - each having its own diagram and palette.
I realized though that it is now possible for the user to drop nodes from a palette in component X to the diagram of component Y, although these should not be related at all.
Is there a way to restrict the scope of a palette?
I guess I could use the ExternalObjectsDropped DiagramEvent and make a validation there by checking if the origin of the node (that I could send within the nodeData) is compatible with the diagram ID, but I would rather intervene earlier, so that I also prevent the creation of the preview of the node.
I recognized that the go.DraggingTool and its doActivate / doDeactive hooks are not called in this first dropping procedure.
Is there any other event / hook / tool that I can use for my validation?
Thanks in regard
Jonas!