Setting nodeContent when using ul as datasource
rezasaberi opened this issue · comments
Mohammad Reza Saberi commented
I have the following ul structure that shows well on the page. It's just I do not know how to display the node contents. Following is what I have tried.
<ul id="ul-data">
<li title="Project Manager">Reza Saberi
<ul>
<li title="Project Associate">Ali Karimi</li>
<li title="Data Analyst">Ahmad Basir</li>
</ul>
</li>
</ul>
and the following is the js:
$('#chart').orgchart({
'data' : $('#ul-data'),
'pan': true,
'nodeContent': 'title'
});