Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Add an adornment by default to a template

$
0
0

@jude wrote:

I've got two node templates, A and B.
I've registered these two node templates with the diagram as follows:


var templateMap = new go.Map("string", go.Node); templateMap.add("A", templateA); templateMap.add("B", templateB); templateMap.add("", myDiagram.nodeTemplate);
`

I have a palette setup which shares the same node template map as the the diagram. I am able to drag and drop nodes from my palette onto the diagram; it works great :)

However, what I'd like to do is - if a node is using template A, then I'd like to add a permanent adornment to it (always visible).

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles