Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Why does the change of model text change a lot at the same time?

$
0
0

@llian wrote:

Click the event :_designer.addDiagramListener("ObjectSingleClicked", onObjectSingleClicked);
function onObjectSingleClicked(ev) {
var part = ev.subject.part;
showEditNode(part);
};
function showEditNode(node) {
if ((node instanceof go.Node) && node.data.figure === 'Circle') {
layer.msg("开始和结束步骤不可编辑~");
return;
}
experimentVue.sheetInputName = node.data.text;

    $('.sheetName').on('blur',function(){
       var text=  $(this).val();
        _designer.startTransaction("vacate");
    _designer.model.setDataProperty(node.data, "text", text);
    _designer.commitTransaction("vacate");
    })
};

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles