Skip to content

Commit

Permalink
feat(callback and events): add init event and initCompleted callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng committed Jul 3, 2017
1 parent e4fb35a commit 24c3d76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ $('#chartContainerId').orgchart(options);
<tr>
<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>
</tr>
<tr>
<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>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -927,6 +930,7 @@ This method returns you the nodes related to the specified node
</thead>
<tbody>
<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>
<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>
</tbody>
</table>

Expand Down

0 comments on commit 24c3d76

Please sign in to comment.