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

Dynamically change Link category with multiple link templates

$
0
0

@niyamat wrote:

Hi
I have multiple link templates in one diagram.
how to change a link category for particular link at certain logic point.
and link should take effect (refreshing) immediately.
trying to use model.setCategoryForLinkData but it is warn me as unexist method. I am using go.js version 1.8.31.

 this.diagram.model.setCategoryForLinkData(linkData, 'subRedLink');

and snippet suggest me to use setCategoryForNodeData because it is not exist.

even I refer Switching Between Links after Link Drawn Based On Node's Data
and Use different type of links between certain ports.

can anyone help me out.

Thanks

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles