【发布时间】:2017-01-09 11:43:47
【问题描述】:
我正在使用来自http://gojs.net/latest/samples/flowchart.html 的Flowchart,它工作正常。唯一的问题是,它也没有t display the toolbar symbols which are shown in the example. Have someone usedFlowchart` 并且有同样的问题?
var $ = go.GraphObject.make;
myPalette =
$(go.Palette, "myPaletteDiv", // must name or refer to the DIV HTML element
{
"animationManager.duration": 800, // slightly longer than default (600ms) animation
nodeTemplateMap: myDiagram.nodeTemplateMap, // share the templates used by myDiagram
model: new go.GraphLinksModel([ // specify the contents of the Palette
{category: "Start", text: "Start"},
{text: "Step"},
{text: "???", figure: "Diamond"},
{category: "End", text: "End"},
{category: "Comment", text: "Comment"}
])
});
问题
【问题讨论】:
-
您是否在开发者控制台中看到任何错误?
-
是的,这个错误在我的开发者控制台中面临。请在开发者控制台中添加 go js 许可证。此问题已解决。
标签: javascript flowchart gojs