@balkangraph/orgchart.js 8.14.72 → 8.14.73
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 +41 -0
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -2804,6 +2804,47 @@ declare namespace OrgChart {
|
|
|
2804
2804
|
undoRedoStorageName?: string,
|
|
2805
2805
|
/**
|
|
2806
2806
|
* Configure the buildin edit form.
|
|
2807
|
+
* ```typescript
|
|
2808
|
+
* let chart = new OrgChart('#tree', {
|
|
2809
|
+
* editForm: {
|
|
2810
|
+
* readOnly: 'false', // the drefault value
|
|
2811
|
+
* titleBinding: "name", // a property name
|
|
2812
|
+
* photoBinding: "img", // the photo property name
|
|
2813
|
+
* focusBinding: "name",
|
|
2814
|
+
* addMore: "Add am element",
|
|
2815
|
+
* addMoreBtn: "Add",
|
|
2816
|
+
* addMoreFieldName: "Element name:",
|
|
2817
|
+
* saveAndCloseBtn: "Save",
|
|
2818
|
+
* cancelBtn: "Close",
|
|
2819
|
+
* generateElementsFromFields: false,
|
|
2820
|
+
* buttons: {
|
|
2821
|
+
* edit: {
|
|
2822
|
+
* icon: OrgChart.icon.edit(24,24,'#fff'),
|
|
2823
|
+
* text: 'Edit',
|
|
2824
|
+
* hideIfEditMode: true,
|
|
2825
|
+
* hideIfDetailsMode: false
|
|
2826
|
+
* },
|
|
2827
|
+
* share: {
|
|
2828
|
+
* icon: OrgChart.icon.share(24,24,'#fff'),
|
|
2829
|
+
* text: 'Share'
|
|
2830
|
+
* },
|
|
2831
|
+
* pdf: {
|
|
2832
|
+
* icon: OrgChart.icon.pdf(24,24,'#fff'),
|
|
2833
|
+
* text: 'Save as PDF'
|
|
2834
|
+
* },
|
|
2835
|
+
* remove: {
|
|
2836
|
+
* icon: OrgChart.icon.remove(24,24,'#fff'),
|
|
2837
|
+
* text: 'Remove',
|
|
2838
|
+
* hideIfDetailsMode: true
|
|
2839
|
+
* }
|
|
2840
|
+
* },
|
|
2841
|
+
* elements: [
|
|
2842
|
+
* { type: 'textbox', label: 'Full Name', binding: 'Name' },
|
|
2843
|
+
* { type: 'textbox', label: 'Phone number', binding: 'phone' }
|
|
2844
|
+
* ]
|
|
2845
|
+
* }
|
|
2846
|
+
* });
|
|
2847
|
+
* ```
|
|
2807
2848
|
* {@link https://balkan.app/OrgChartJS/Docs/Edit | See doc...}
|
|
2808
2849
|
*/
|
|
2809
2850
|
editForm?: {
|