Draggable Link

Hi,

Can I change the element model on drop to a palette?

For example in the draggable Link we have some DB picture. If I drop the DB in the other palette want to change the picture?

Yes, your palette and diagram can use separate node template maps. If you specify the same category name in both, the node will use the diagram’s template once dropped in from the palette.

The palette intro page has an example of this: GoJS Palette -- Northwoods Software

Or you could implement an “ExternalObjectsDropped” DiagramEvent listener that makes whatever changes you like to the Diagram.selection or their data.