当我们选择一个单元格并给出一个值时,我正在处理 mxgraph 和图形页面,它应该只显示为超链接。但是当我使用 html、锚标记或其他方式时,整个代码在单元格中显示为文本。即使我尝试动态输入值,它也会显示为文本。
var Element123 = "<html><a href=''/Graph/Graph/' + globals.getProjID() + '/' + newValue +' '>' "+ selctedItem +" </a></html>"
this.graph.labelChanged(cell, Element123, evt);
this.graph.getModel().endUpdate();
}
这里的 newValue 是下拉列表中所选选项的 ID。