【发布时间】:2017-07-30 00:03:35
【问题描述】:
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;
};
我想知道如何在 OkName 函数之外获取 newstr?我想收集所有的 newstr。
谢谢!
【问题讨论】:
-
改进格式
标签: gojs