当我单击从调色板中拖放的节点时,我想获得一个输入框来传递参数
我尝试使用showContextMenu,但不允许我传递特定对象的输入。
myDiagram.addDiagramListener("ExternalObjectsDropped", function (e) {
modelData = [];
var newnode = myDiagram.selection.first();
var newDroppedPortKeyName = newnode.je.name;
var newDroppedPortSourceName = newnode.je.source;
var newDroppedPortCategoryName = newnode.je.category;
console.log(newDroppedPortCategoryName);
console.log(newDroppedPortKeyName);
console.log(myDiagram.selection.first());
updateTextArea(newDroppedPortKeyName);
modelData = myDiagram.model.findNodeDataForKey(newDroppedPortKeyName);
setTimeout(function() { e.diagram.commandHandler.showContextMenu(); }, 1);
});
我希望在单击对象时会出现一个输入框。