0
myDiagram.nodeTemplateMap.add("decision",
$(go.Node, "Auto",
new go.Binding("text", "text"),
// define the node's outer shape, which will surround the Horizontal Panel
$(go.Shape, "Rectangle",
{ fill: "yellow", stroke: "lightgray" }),
// define a horizontal Panel to place the node's text alongside the buttons
$(go.Panel, "Horizontal",
$(go.TextBlock,
{ editable: true, font: "15px Roboto, sans-serif", margin: 5, textValidation: okName},
//textValidation: okAnswer},
function okName(textblock, oldstr, newstr) {
return true;
};
我想知道如何获得OkQuery函数以外的newstr?我想收集所有的newstr。图表更改后如何获取更新后的模型?
谢谢!
改进格式 –