@balkangraph/orgchart.js 8.14.113 → 8.14.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/orgchart.d.ts CHANGED
@@ -155,12 +155,14 @@ declare class OrgChart {
155
155
 
156
156
  /**
157
157
  * Removes an event listener previously registered. The event listener to be removed is identified using a combination of the event type and the event listener function itself. Returns true if success and false if fail.
158
+ * ```typescript
158
159
  * let chart = new OrgChart('#tree', {});
159
160
  * let listener = function(sender, args){
160
161
  * console.log(sender.removeListener('update', listener));
161
162
  * };
162
163
  * chart.on('update', listener);
163
164
  * chart.load(nodes)
165
+ * ```
164
166
  };
165
167
 
166
168
  family.on('update', listener);
@@ -1488,9 +1490,8 @@ declare class OrgChart {
1488
1490
 
1489
1491
  /**
1490
1492
  * Opens file upload dialog
1491
- * ```typescript
1493
+ * ```typescript
1492
1494
  * let chart = new OrgChart('#tree', {});
1493
- *
1494
1495
  * chart.editUI.on('element-btn-click', function (sender, args) {
1495
1496
  * OrgChart.fileUploadDialog(function (file) {
1496
1497
  * var formData = new FormData();
@@ -1498,7 +1499,6 @@ declare class OrgChart {
1498
1499
  * alert('upload the file');
1499
1500
  * })
1500
1501
  * });
1501
- *
1502
1502
  * chart.load(nodes)
1503
1503
  * ```
1504
1504
  */