Skip to content

Commit

Permalink
update readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng committed May 9, 2023
1 parent ba2baa1 commit 3fb3ae1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ You need the solution based on new datasource structure with **levelOffset data

**isVertical data property** is designed for your use case. Once a node has a "isVertical" prop with truthy value, its descendant nodes will be arranged vertically.

- [I want to replace built-in icons with Font Awesome icons](https://dabeng.github.io/OrgChart/drag-drop-hybrid-chart.html)

### how to start up demos locally

- you have to install node.js v6+ because our unit tests are based on jsdom v11
Expand Down Expand Up @@ -384,6 +386,28 @@ var oc = $('#chartContainerId').orgchart(options);
<td></td>
<td>It can often be useful to know when your table has fully been initialised, data loaded and rendered, particularly when using an ajax data source. It receives one parament: "$chart" stands for jquery object of initialised chart.</td>
</tr>
<tr>
<td>icons</td>
<td>json</td>
<td>no</td>
<td></td>
<td>Users can use this option to plug Font Awesome icons back in.
<pre>
<code>
'icons': {
'theme': 'fa-solid fa-sm',
'parentNode': 'fa-user-tie',
'expandToUp': 'fa-angles-up',
'collapseToDown': 'fa-angles-down',
'collapseToLeft': 'fa-angles-left',
'expandToRight': 'fa-angles-right',
'collapsed': 'fa-circle-plus',
'expanded': 'fa-circle-minus'
}
</code>
</pre>
</td>
</tr>
</tbody>
</table>

Expand Down

0 comments on commit 3fb3ae1

Please sign in to comment.