0

所有这些问题都与 GetOrgChart 有关

  1. 有没有办法将可点击的链接嵌入到其中一个组织框中?
  2. 我可以混合形状(一些矩形、一些正方形等)吗?
  3. 组织结构图节点的数量有上限吗?

我实际上并没有将它用于组织结构图。我用它来显示其他分层数据。

谢谢约翰

4

1 回答 1

0

here is an example how to embed a clickable link into one of the org boxes

    $("#people").getOrgChart({	
        renderBoxContentEvent: function( sender, args ) {
            if (args.id == 1){
                args.boxContentElements.push('<a xlink:href="http://www.GetOrgChart.com/"><text fill="#ffffff" width="330" x="10" y="100">go to www.getorgchart.com</text></a>');
                
            }
        },
        dataSource: [
            { id: 1, parentId: null, Name: "Amber McKenzie", Title: "CEO", Address: "MyAddress"},
            { id: 2, parentId: 1, Name: "Ava Field", Title: "CTO", Phone: "+359 888 888 888", Image: "http://www.getorgchart.com/GetOrgChart/getorgchart-demos/images/f-6.jpg"},
            { id: 3, parentId: 1, Name: "Evie Johnson", Title: "CFO", Car: "BMW"}]
    });
html, body {margin: 0px; padding: 0px;height: 100%; overflow: hidden; }
#people {width: 100%;height: 100%; } 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://getorgchart.com/GetOrgChart/getorgchart/getorgchart.js"></script>
<link href="http://getorgchart.com/GetOrgChart/getorgchart/getorgchart.css" rel="stylesheet" />
<div id="people"></div>

Here is an example of mixed shapes http://www.getorgchart.com/Demos/Mixed-Shapes

Regarding your last question, the limit depend of your browser

于 2016-09-24T13:19:14.477 回答