2016-07-06 60 views
0

所有這些問題涉及到GetOrgChart我有幾個問題

  1. 有沒有一種方法嵌入一個可點擊的鏈接進入的組織框之一?
  2. 我可以混合形狀(某些矩形,某些方塊等)
  3. 組織結構圖節點數是否有任何上限?

我實際上並未將其用於組織結構圖。我正在使用它來顯示其他分層數據。

感謝 約翰

回答

0

這裏有一個例子如何嵌入一個可點擊的鏈接進入的組織盒

$("#people").getOrgChart({ \t 
 
     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>

這裏,人們混合形狀的例子的 http://www.getorgchart.com/Demos/Mixed-Shapes

關於你最後的任務離子,極限取決於你的瀏覽器