Skip to content

Commit 24c3d76

Browse files
committed
feat(callback and events): add init event and initCompleted callback
1 parent e4fb35a commit 24c3d76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ $('#chartContainerId').orgchart(options);
646646
<tr>
647647
<td>dropCriteria</td><td>function</td><td>no</td><td></td><td>Users can construct their own criteria to limit the relationships between dragged node and drop zone. Furtherly, this function accept three arguments(draggedNode, dragZone, dropZone) and just only return boolen values.</td>
648648
</tr>
649+
<tr>
650+
<td>initCompleted</td><td>function</td><td>no</td><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 recieves one parament: "$chart" stands for jquery object of initialised chart.</td>
651+
</tr>
649652
</tbody>
650653
</table>
651654

@@ -927,6 +930,7 @@ This method returns you the nodes related to the specified node
927930
</thead>
928931
<tbody>
929932
<tr><td>nodedropped.orgchart</td><td>draggedNode, dragZone, dropZone</td><td>The event's handler is where you can place your customized function after node drop over. For more details, please refer to <a target="_blank" href="http://dabeng.github.io/OrgChart/drag-drop/">example drag & drop</a>.</td></tr>
933+
<tr><td>init.orgchart</td><td>chart</td><td>Initialisation complete event - fired when Organization Chart has been fully initialised and data loaded.</td></tr>
930934
</tbody>
931935
</table>
932936

0 commit comments

Comments
 (0)