@balkangraph/orgchart.js 8.14.72 → 8.14.74

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
@@ -2195,6 +2195,13 @@ declare namespace OrgChart {
2195
2195
  showXScroll?: boolean ,
2196
2196
  /**
2197
2197
  * movable node, move the node anywhere on the canvas
2198
+ * ```typescript
2199
+ * let chart = new OrgChart('#tree', {
2200
+ * movable: OrgChart.movable.node,
2201
+ * // movable: OrgChart.movable.tree,
2202
+ * // movable: OrgChart.movable.detachTree,
2203
+ * });
2204
+ * ```
2198
2205
  */
2199
2206
  movable?: OrgChart.movable,
2200
2207
  /**
@@ -2577,6 +2584,11 @@ declare namespace OrgChart {
2577
2584
  /**
2578
2585
  * Sets the maximum number of columns in grid layout, it has to be even nymber or 'dynamic' string
2579
2586
  * The default id 'dynamic', that means that the maximum colomn numbers are dinamicly calculated
2587
+ * ```typescript
2588
+ * let chart = new OrgChart('#tree', {
2589
+ * layoutGridColumns: 10,
2590
+ * });
2591
+ * ```
2580
2592
  */
2581
2593
  layoutGridColumns?: string | number,
2582
2594
  /**
@@ -2800,10 +2812,57 @@ declare namespace OrgChart {
2800
2812
  },
2801
2813
  /**
2802
2814
  * Set the session storage name to use undo/redo functionallity.
2815
+ * ```typescript
2816
+ * let chart = new OrgChart('#tree', {
2817
+ * undoRedoStorageName: 'myStorageName',
2818
+ * });
2819
+ * ```
2803
2820
  */
2804
2821
  undoRedoStorageName?: string,
2822
+
2805
2823
  /**
2806
2824
  * Configure the buildin edit form.
2825
+ * ```typescript
2826
+ * let chart = new OrgChart('#tree', {
2827
+ * editForm: {
2828
+ * readOnly: 'false', // the drefault value
2829
+ * titleBinding: "name", // a property name
2830
+ * photoBinding: "img", // the photo property name
2831
+ * focusBinding: "name",
2832
+ * addMore: "Add am element",
2833
+ * addMoreBtn: "Add",
2834
+ * addMoreFieldName: "Element name:",
2835
+ * saveAndCloseBtn: "Save",
2836
+ * cancelBtn: "Close",
2837
+ * generateElementsFromFields: false,
2838
+ * buttons: {
2839
+ * edit: {
2840
+ * icon: OrgChart.icon.edit(24,24,'#fff'),
2841
+ * text: 'Edit',
2842
+ * hideIfEditMode: true,
2843
+ * hideIfDetailsMode: false
2844
+ * },
2845
+ * share: {
2846
+ * icon: OrgChart.icon.share(24,24,'#fff'),
2847
+ * text: 'Share'
2848
+ * },
2849
+ * pdf: {
2850
+ * icon: OrgChart.icon.pdf(24,24,'#fff'),
2851
+ * text: 'Save as PDF'
2852
+ * },
2853
+ * remove: {
2854
+ * icon: OrgChart.icon.remove(24,24,'#fff'),
2855
+ * text: 'Remove',
2856
+ * hideIfDetailsMode: true
2857
+ * }
2858
+ * },
2859
+ * elements: [
2860
+ * { type: 'textbox', label: 'Full Name', binding: 'Name' },
2861
+ * { type: 'textbox', label: 'Phone number', binding: 'phone' }
2862
+ * ]
2863
+ * }
2864
+ * });
2865
+ * ```
2807
2866
  * {@link https://balkan.app/OrgChartJS/Docs/Edit | See doc...}
2808
2867
  */
2809
2868
  editForm?: {