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。圖表更改後如何獲取更新後的模型?
謝謝!
改進格式 –