Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7406

Diagram node to use properties from related palette node

$
0
0

@Dominic.Lerbs wrote:

Hi,

when dragging a node from the palette to the diagram all nodeData properties are copied to the new diagram node.
Is there any mechanism for copying only some of the properties, and just add a reference for the other properties to the palette node? Or do I have to implement such functionality manually?
In our application we have a diagram and a palette, and sometimes we might want to update the palette nodes with more attributes. In this case it would be useful if we could tell the diagram node to use a certain nodeData property from the palette node (with the same id/name).

Example: Our palette node data contains the icon as a base64 encoded string. When the node is dragged to the diagram (possibly multiple times), I don't want to icon string to be copied, but to reference the palette node icon string instead. So if I would update the icon string in the palette later, all nodes in the diagram would use the new icon string as well.

I am about to implement this functionality manually but was wondering if there is maybe something built into goJS already.

Best regards,
Dominic

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7406

Trending Articles