updateNode不允许更新secondParentIdField。
<script type="text/javascript">
$.getJSON("http://www.getorgchart.com/JsonInitialization/Read?callback=?", function (source) {
var peopleElement = document.getElementById("people");
var orgChart = new getOrgChart(peopleElement, {
theme: "helen",
secondParentIdField: "secondManager",
primaryFields: ["Name", "Title"],
photoFields: ["Image"],
linkType: "M",
enableEdit: false,
enableDetailsView: false,
dataSource: source
});
orgChart.updateNode(4, null, {
secondManager: 2,
Name: "Test",
Title: "Executive Assistant",
Office: "City",
Image: "/img/test.jpg"
});
});
</script>
一个节点可以有多个次要父母吗?
即
总裁和2个或更多EVP使用相同的执行助手。