我使用gojs的流程图,当我点击链接从节点到节点并在文本框中显示时我想要?
我尝试了某种方式,但我找不到任何事情
任何人都可以帮助我,我真的需要那个
myDiagram.model = new go.GraphLinksModel(
[
{ key: "Alpha", color: "lightblue" },
{ key: "Delta", color: "pink" }
],
[
{ from: "Alpha", to: "Alpha" },
{ from: "Delta", to: "Alpha" }
]);
{ from: "Delta", to: "Alpha" }
中的
在1个文本框中显示from: "Delta"
和其他文本框中的to: "Alpha"
答案 0 :(得分:0)
One way would be to implement a click event handler in your Link template. The event handler's second argument would be the clicked Link, from which link.data.from
and link.data.to
would return the keys of the two connected node data objects.