diff --git a/README.md b/README.md index 2e9693df..0b78bb37 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ - Supports exporting chart as a picture or pdf document. - Supports pan and zoom - Users can adopt multiple solutions to build up a huge organization chart(please refer to multiple-layers or hybrid layout sections) -- touch-enabled plugin for mobile divice +- touch-enabled plugin for mobile device ## CDN Users could find the related CDN support for OrgChart's CSS and JavaScript. @@ -94,7 +94,7 @@ Users are allowed to drag & drop the nodes of orgchart when option "draggable" i Furthermore, users can make use of option dropCriteria to inject their custom limitations on drag & drop. As shown below, we don't want an manager employee to be under a engineer under no circumstance. -- [I want a method that can decribe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html) +- [I want a method that can describe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html) That's where getHierarchy() comes in. @@ -221,10 +221,10 @@ var oc = $('#chartContainerId').orgchart(options); nodeIdstringno"id"It sets one property of datasource as unique identifier of every orgchart node. - nodeTemplatefunctionnoIt's a template generation function used to customize any complex internal structure of node. It recieves only one parameter: "data" stands for json datasoure which will be use to render one node. + nodeTemplatefunctionnoIt's a template generation function used to customize any complex internal structure of node. It receives only one parameter: "data" stands for json datasoure which will be use to render one node. - createNodefunctionnoIt's a callback function used to customize every orgchart node. It recieves two parameters: "$node" stands for jquery object of single node div; "data" stands for datasource of single node. + createNodefunctionnoIt's a callback function used to customize every orgchart node. It receives two parameters: "$node" stands for jquery object of single node div; "data" stands for datasource of single node. exportButtonbooleannofalseIt enable the export button for orgchart. @@ -245,7 +245,7 @@ var oc = $('#chartContainerId').orgchart(options); dropCriteriafunctionnoUsers 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. - initCompletedfunctionnoIt 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. + initCompletedfunctionnoIt 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.