@balkangraph/orgchart.js 8.14.112 → 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 +35 -6
- package/orgchart.js +1 -1
- package/package.json +1 -1
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
|
*/
|
|
@@ -2094,20 +2094,49 @@ declare class OrgChart {
|
|
|
2094
2094
|
static FILTER_ALPHABETICALLY: boolean;
|
|
2095
2095
|
|
|
2096
2096
|
/**
|
|
2097
|
-
*
|
|
2097
|
+
* Generates random id for a node
|
|
2098
|
+
* ```typescript
|
|
2099
|
+
* let id = OrgChart.randomId();
|
|
2100
|
+
* ```
|
|
2098
2101
|
*/
|
|
2099
|
-
|
|
2100
2102
|
static randomId(): any;
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* @ignore
|
|
2106
|
+
*/
|
|
2101
2107
|
static searchUI: any;
|
|
2108
|
+
/**
|
|
2109
|
+
* @ignore
|
|
2110
|
+
*/
|
|
2102
2111
|
static editUI: any;
|
|
2112
|
+
/**
|
|
2113
|
+
* @ignore
|
|
2114
|
+
*/
|
|
2103
2115
|
static pdfPrevUI: OrgChart.pdfPrevUI;
|
|
2104
2116
|
// static menuUI: any;
|
|
2117
|
+
/**
|
|
2118
|
+
* @ignore
|
|
2119
|
+
*/
|
|
2105
2120
|
static attr: any;
|
|
2121
|
+
/**
|
|
2122
|
+
* @ignore
|
|
2123
|
+
*/
|
|
2106
2124
|
static toolbarUI: any;
|
|
2125
|
+
/**
|
|
2126
|
+
* @ignore
|
|
2127
|
+
*/
|
|
2107
2128
|
static elements: any;
|
|
2108
|
-
|
|
2129
|
+
/**
|
|
2130
|
+
* @ignore
|
|
2131
|
+
*/
|
|
2109
2132
|
static expcollOpenTag: any;
|
|
2133
|
+
/**
|
|
2134
|
+
* @ignore
|
|
2135
|
+
*/
|
|
2110
2136
|
static upOpenTag: any;
|
|
2137
|
+
/**
|
|
2138
|
+
* @ignore
|
|
2139
|
+
*/
|
|
2111
2140
|
static grCloseTag: any;
|
|
2112
2141
|
}
|
|
2113
2142
|
|