@progress/kendo-angular-treeview 19.1.2-develop.2 → 19.1.2-develop.3

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.
Files changed (67) hide show
  1. package/check-mode.d.ts +4 -3
  2. package/check.directive.d.ts +20 -9
  3. package/checkable-settings.d.ts +14 -19
  4. package/checkbox/checked-state.d.ts +1 -1
  5. package/directives.d.ts +15 -1
  6. package/disable.directive.d.ts +1 -1
  7. package/drag-and-drop/drag-and-drop-editing.directive.d.ts +20 -8
  8. package/drag-and-drop/drag-and-drop.directive.d.ts +29 -20
  9. package/drag-and-drop/drag-clue/drag-clue-template.directive.d.ts +16 -9
  10. package/drag-and-drop/drop-hint/drop-hint-template.directive.d.ts +16 -7
  11. package/drag-and-drop/models/drop-action.d.ts +17 -2
  12. package/drag-and-drop/models/drop-position.d.ts +10 -1
  13. package/drag-and-drop/models/editing-service.d.ts +6 -6
  14. package/drag-and-drop/models/scroll-settings.d.ts +6 -6
  15. package/drag-and-drop/models/tree-item-filter-state.d.ts +11 -10
  16. package/drag-and-drop/models/treeitem-add-remove-args.d.ts +7 -7
  17. package/drag-and-drop/models/treeitem-drag-event.d.ts +5 -5
  18. package/drag-and-drop/models/treeitem-drag-start-event.d.ts +3 -3
  19. package/drag-and-drop/models/treeitem-drop-event.d.ts +10 -11
  20. package/esm2022/check.directive.mjs +20 -9
  21. package/esm2022/directives.mjs +15 -1
  22. package/esm2022/disable.directive.mjs +1 -1
  23. package/esm2022/drag-and-drop/drag-and-drop-editing.directive.mjs +20 -8
  24. package/esm2022/drag-and-drop/drag-and-drop.directive.mjs +29 -20
  25. package/esm2022/drag-and-drop/drag-clue/drag-clue-template.directive.mjs +16 -9
  26. package/esm2022/drag-and-drop/drop-hint/drop-hint-template.directive.mjs +16 -7
  27. package/esm2022/drag-and-drop/models/drop-action.mjs +17 -2
  28. package/esm2022/drag-and-drop/models/drop-position.mjs +10 -1
  29. package/esm2022/drag-and-drop/models/treeitem-drag-event.mjs +5 -5
  30. package/esm2022/drag-and-drop/models/treeitem-drag-start-event.mjs +3 -3
  31. package/esm2022/drag-and-drop/models/treeitem-drop-event.mjs +10 -11
  32. package/esm2022/expand.directive.mjs +19 -8
  33. package/esm2022/flat-binding.directive.mjs +19 -4
  34. package/esm2022/hierarchy-binding.directive.mjs +18 -4
  35. package/esm2022/load-more/load-more-button-template.directive.mjs +14 -6
  36. package/esm2022/load-more/load-more.directive.mjs +25 -13
  37. package/esm2022/localization/custom-messages.component.mjs +10 -1
  38. package/esm2022/localization/messages.mjs +1 -1
  39. package/esm2022/node-template.directive.mjs +14 -46
  40. package/esm2022/package-metadata.mjs +2 -2
  41. package/esm2022/selection/select.directive.mjs +19 -8
  42. package/esm2022/treeview.component.mjs +73 -129
  43. package/esm2022/treeview.module.mjs +15 -0
  44. package/expand.directive.d.ts +19 -8
  45. package/fesm2022/progress-kendo-angular-treeview.mjs +391 -299
  46. package/filter-expand-settings.interface.d.ts +13 -12
  47. package/filter-state.interface.d.ts +6 -6
  48. package/flat-binding.directive.d.ts +19 -4
  49. package/hierarchy-binding.directive.d.ts +18 -4
  50. package/load-more/load-more-button-template.directive.d.ts +14 -6
  51. package/load-more/load-more-request-args.d.ts +6 -7
  52. package/load-more/load-more.directive.d.ts +25 -13
  53. package/localization/custom-messages.component.d.ts +10 -1
  54. package/localization/messages.d.ts +1 -1
  55. package/node-click-event.interface.d.ts +4 -4
  56. package/node-template.directive.d.ts +14 -46
  57. package/package.json +7 -7
  58. package/schematics/ngAdd/index.js +4 -4
  59. package/selection/select.directive.d.ts +19 -8
  60. package/selection/selectable-settings.d.ts +5 -49
  61. package/selection/selection-mode.d.ts +3 -42
  62. package/size.d.ts +1 -1
  63. package/treeitem-lookup.interface.d.ts +9 -8
  64. package/treeitem.interface.d.ts +3 -3
  65. package/treeview-filter-settings.d.ts +13 -23
  66. package/treeview.component.d.ts +73 -129
  67. package/treeview.module.d.ts +15 -0
@@ -4,29 +4,30 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TreeItem } from './treeitem.interface';
6
6
  /**
7
- * Represents a node-tree lookup structure which persists information about the current node and about its parent and children nodes ([see example]({% slug checkboxes_treeview %}#toc-modifying-the-checked-state)).
7
+ * Represents a node-tree lookup structure that stores information about the current node, its parent, and its children
8
+ * ([see example](slug:checkboxes_treeview#toc-modifying-the-checked-state)).
8
9
  */
9
10
  export interface ItemLookup {
10
11
  /**
11
- * The current TreeItem instance
12
+ * The current `TreeItem` instance.
12
13
  */
13
14
  item: TreeItem;
14
15
  /**
15
- * The children of the current node
16
+ * The children of the current node.
16
17
  */
17
18
  children?: TreeItem[];
18
19
  /**
19
- * The parent of the current node
20
+ * The parent of the current node.
20
21
  */
21
22
  parent?: ItemLookup;
22
23
  }
23
24
  /**
24
- * Represents a node-tree lookup structure which persists information about the current node and about its parent and children nodes.
25
- * Used in the [`checkedChange`]({% slug api_treeview_treeviewcomponent %}#toc-checkedchange) event of the TreeView ([see example]({% slug checkboxes_treeview %}#toc-modifying-the-checked-state)).
25
+ * Represents a node-tree lookup structure that stores information about the current node, its parent, and its children.
26
+ * Used in the [`checkedChange`](slug:api_treeview_treeviewcomponent#checkedchange) event of the TreeView ([see example](slug:checkboxes_treeview#toc-modifying-the-checked-state)).
26
27
  */
27
28
  export interface TreeItemLookup {
28
29
  /**
29
- * The current TreeItem instance.
30
+ * The current `TreeItem` instance.
30
31
  */
31
32
  item: TreeItem;
32
33
  /**
@@ -34,7 +35,7 @@ export interface TreeItemLookup {
34
35
  */
35
36
  parent?: ItemLookup;
36
37
  /**
37
- * The lookup details for the children of the current TreeView node.
38
+ * The lookup details for the children of the current TreeView node.
38
39
  */
39
40
  children?: TreeItemLookup[];
40
41
  }
@@ -7,13 +7,13 @@
7
7
  */
8
8
  export interface TreeItem {
9
9
  /**
10
- * The data item that is bound to the TreeView node
11
- * ([see example]({% slug selection_treeview %}#toc-modifying-the-selection)).
10
+ * The data item associated with the TreeView node
11
+ * ([see example](slug:selection_treeview#modifying-the-selection)).
12
12
  */
13
13
  dataItem: any;
14
14
  /**
15
15
  * The auto-generated hierarchical index of the TreeView node
16
- * ([see example]({% slug selection_treeview %}#toc-modifying-the-selection)).
16
+ * ([see example](slug:selection_treeview#toc-modifying-the-selection)).
17
17
  */
18
18
  index: string;
19
19
  }
@@ -2,45 +2,35 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Represents the filter settings for the TreeView component.
7
+ */
5
8
  export interface TreeViewFilterSettings {
6
9
  /**
7
- * The filter operator (comparison).
10
+ * Sets the filter operator for comparing values.
8
11
  *
9
- * The supported operators are:
10
- * * `"contains"`
11
- * * `"doesnotcontain"`
12
- * * `"startswith"`
13
- * * `"doesnotstartwith"`
14
- * * `"endswith"`
15
- * * `"doesnotendwith"`
12
+ * You can use a string operator or a custom matcher function.
16
13
  *
17
- * The default operator is `"contains"`.
18
- *
19
- * A custom matcher function can also be provided to the filter settings object:
20
- * @example
21
- * ```ts
22
- * const matcher: MatcherFunction = (dataItem: object, searchTerm: string) => dataItem.firstName.indexOf(searchTerm) >= 0;
23
- * ```
24
14
  */
25
15
  operator?: 'contains' | 'doesnotcontain' | 'startswith' | 'doesnotstartwith' | 'endswith' | 'doesnotendwith' | MatcherFunction;
26
16
  /**
27
- * Determines if the string comparison is case-insensitive.
28
- * By defualt, a case-insensitive filtering will be performed.
17
+ * Specifies if the string comparison ignores case.
18
+ *
19
+ * @default true
29
20
  */
30
21
  ignoreCase?: boolean;
31
22
  /**
32
- * Determines the behavior of the filtering algorithm.
33
- * - `"strict"`—does not show child nodes of filter matches. Instead, only matching nodes themselves are displayed.
34
- * - `"lenient"`—all child nodes of each filter match are included in the filter results.
23
+ * Sets the filtering mode. In `"strict"` mode, the TreeView shows only matching nodes without any child nodes. In `"lenient"` mode, the TreeView includes all child nodes of each filter match.
35
24
  *
36
- * The default mode is `"lenient"`
25
+ * @default "lenient"
37
26
  */
38
27
  mode?: "strict" | "lenient";
39
28
  }
40
29
  /**
41
- * A function that determines if a match is valid based on a source text and a term
30
+ * Represents a function that checks if a match is valid based on a source text and a term.
31
+ *
42
32
  * @example
43
- * ```ts
33
+ * ```typescript
44
34
  * const matcher: MatcherFunction = (dataItem: object, searchTerm: string) => dataItem.firstName.indexOf(searchTerm) >= 0;
45
35
  * ```
46
36
  */
@@ -26,8 +26,19 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
26
26
  import { TextBoxComponent } from '@progress/kendo-angular-inputs';
27
27
  import * as i0 from "@angular/core";
28
28
  /**
29
- * Represents the [Kendo UI TreeView component for Angular]({% slug overview_treeview %}).
29
+ * Represents the [Kendo UI TreeView component for Angular](slug:overview_treeview).
30
30
  *
31
+ * @example
32
+ * ```html
33
+ * <kendo-treeview
34
+ * kendoTreeViewExpandable
35
+ * [nodes]="data"
36
+ * textField="text"
37
+ * [children]="fetchChildren"
38
+ * [hasChildren]="hasChildren"
39
+ * >
40
+ * </kendo-treeview>
41
+ * ```
31
42
  */
32
43
  export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewInit, OnDestroy, DataBoundComponent {
33
44
  element: ElementRef<HTMLElement>;
@@ -57,16 +68,17 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
57
68
  */
58
69
  searchbox: TextBoxComponent;
59
70
  /**
60
- * The hint which is displayed when the component is empty.
71
+ * Sets the placeholder text for the filter input when the component is empty.
61
72
  */
62
73
  filterInputPlaceholder: string;
63
74
  /**
64
- * Determines whether to allow expanding disabled nodes.
75
+ * Allows expanding disabled nodes.
76
+ *
65
77
  * @default false
66
78
  */
67
79
  expandDisabledNodes: boolean;
68
80
  /**
69
- * Determines whether the content animation is enabled.
81
+ * Enables or disables content animation.
70
82
  */
71
83
  set animate(value: boolean);
72
84
  get animate(): boolean;
@@ -80,79 +92,73 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
80
92
  item: TreeItem;
81
93
  }>;
82
94
  /**
83
- * Fires when the user blurs the component.
84
- */
95
+ * Fires when the component loses focus.
96
+ */
85
97
  onBlur: EventEmitter<any>;
86
98
  /**
87
- * Fires when the user focuses the component.
99
+ * Fires when the component receives focus.
88
100
  */
89
101
  onFocus: EventEmitter<any>;
90
102
  /**
91
- * Fires when the user expands a TreeView node.
103
+ * Fires when a TreeView node expands.
92
104
  */
93
105
  expand: EventEmitter<TreeItem>;
94
106
  /**
95
- * Fires when the user collapses a TreeView node.
107
+ * Fires when a TreeView node collapses.
96
108
  */
97
109
  collapse: EventEmitter<TreeItem>;
98
110
  /**
99
- * Fires just before the dragging of the node starts ([see example]({% slug draganddrop_treeview %}#toc-setup)). This event is preventable.
100
- * If you prevent the event default, no drag hint will be created and the subsequent drag-related events will not be fired.
111
+ * Fires just before node dragging starts ([see example](slug:draganddrop_treeview#setup)). This event is preventable.
112
+ * Prevent the default event to stop drag hint creation and further drag events.
101
113
  */
102
114
  nodeDragStart: EventEmitter<TreeItemDragStartEvent>;
103
115
  /**
104
- * Fires when an item is being dragged ([see example]({% slug draganddrop_treeview %}#toc-setup)).
116
+ * Fires when an item is being dragged ([see example](slug:draganddrop_treeview#setup)).
105
117
  */
106
118
  nodeDrag: EventEmitter<TreeItemDragEvent>;
107
119
  /**
108
- * Emits when the built-in filtering mechanism in the data-binding directives updates the node's visibility.
109
- * Used for the built-in auto-expand functionalities of the component and available for custom implementations.
120
+ * Emits when the built-in filtering mechanism updates node visibility.
121
+ * Used for the built-in auto-expand functionalities. Handle this event for custom implementations.
110
122
  */
111
123
  filterStateChange: EventEmitter<FilterState>;
112
124
  /**
113
- * Fires on the target TreeView when a dragged item is dropped ([see example]({% slug draganddrop_treeview %}#toc-setup)).
114
- * This event is preventable. If you prevent the event default (`event.preventDefualt()`) or invalidate its state (`event.setValid(false)`),
115
- * the `addItem` and `removeItem` events will not be triggered.
125
+ * Fires on the target TreeView when a dragged item is dropped ([see example](slug:draganddrop_treeview#setup)).
126
+ *
127
+ * Prevent the default event (`event.preventDefault()`) or set the event as invalid (`event.setValid(false)`) to stop the `addItem` and `removeItem` events from triggering.
116
128
  *
117
- * Both operations cancel the default drop operation, but the indication to the user is different. `event.setValid(false)` indicates that the operation was
118
- * unsuccessful by animating the drag clue to its original position. `event.preventDefault()` simply removes the clue, as if it has been dropped successfully.
119
- * As a general rule, use `preventDefault` to manually handle the add and remove operations, and `setValid(false)` to indicate the operation was unsuccessful.
129
+ * Use `preventDefault` to handle add/remove manually, or `setValid(false)` to indicate an unsuccessful operation. While `setValid(false)` animates the drag clue to its original position, `event.preventDefault()` simply removes the clue.
120
130
  */
121
131
  nodeDrop: EventEmitter<TreeItemDropEvent>;
122
132
  /**
123
- * Fires on the source TreeView after the dragged item has been dropped ([see example]({% slug draganddrop_treeview %}#toc-setup)).
133
+ * Fires on the source TreeView after the dragged item is dropped ([see example](slug:draganddrop_treeview#setup)).
124
134
  */
125
135
  nodeDragEnd: EventEmitter<TreeItemDragEvent>;
126
136
  /**
127
- * Fires after a dragged item is dropped ([see example]({% slug draganddrop_treeview %}#toc-setup)).
128
- * Called on the TreeView where the item is dropped.
137
+ * Fires after a dragged item is dropped ([see example](slug:draganddrop_treeview#setup)). Called on the TreeView where the item is dropped.
129
138
  */
130
139
  addItem: EventEmitter<TreeItemAddRemoveArgs>;
131
140
  /**
132
- * Fires after a dragged item is dropped ([see example]({% slug draganddrop_treeview %}#toc-setup)).
133
- * Called on the TreeView from where the item is dragged.
141
+ * Fires after a dragged item is dropped ([see example](slug:draganddrop_treeview#setup)). Called on the TreeView from where the item is dragged.
134
142
  */
135
143
  removeItem: EventEmitter<TreeItemAddRemoveArgs>;
136
144
  /**
137
- * Fires when the user selects a TreeView node checkbox
138
- * ([see example]({% slug checkboxes_treeview %}#toc-modifying-the-checked-state)).
145
+ * Fires when a TreeView node checkbox is selected ([see example](slug:checkboxes_treeview#toc-modifying-the-checked-state)).
139
146
  */
140
147
  checkedChange: EventEmitter<TreeItemLookup>;
141
148
  /**
142
- * Fires when the user selects a TreeView node
143
- * ([see example]({% slug selection_treeview %}#toc-modifying-the-selection)).
149
+ * Fires when a TreeView node is selected ([see example](slug:selection_treeview#toc-modifying-the-selection)).
144
150
  */
145
151
  selectionChange: EventEmitter<TreeItem>;
146
152
  /**
147
- * Fires when the value of the built-in filter input element changes.
153
+ * Fires when the value of the built-in filter input changes.
148
154
  */
149
155
  filterChange: EventEmitter<string>;
150
156
  /**
151
- * Fires when the user clicks a TreeView node.
157
+ * Fires when a TreeView node is clicked.
152
158
  */
153
159
  nodeClick: EventEmitter<NodeClickEvent>;
154
160
  /**
155
- * Fires when the user double clicks a TreeView node.
161
+ * Fires when a TreeView node is double-clicked.
156
162
  */
157
163
  nodeDblClick: EventEmitter<NodeClickEvent>;
158
164
  /**
@@ -188,116 +194,82 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
188
194
  /**
189
195
  * A function that defines how to track node changes.
190
196
  * By default, the TreeView tracks the nodes by data item object reference.
191
- *
192
- * @example
193
- * ```ts
194
- * @Component({
195
- * selector: 'my-app',
196
- * template: `
197
- * <kendo-treeview
198
- * [nodes]="data"
199
- * textField="text"
200
- * [trackBy]="trackBy"
201
- * >
202
- * </kendo-treeview>
203
- * `
204
- * })
205
- * export class AppComponent {
206
- * public data: any[] = [
207
- * { text: "Furniture" },
208
- * { text: "Decor" }
209
- * ];
210
- *
211
- * public trackBy(index: number, item: any): any {
212
- * return item.text;
213
- * }
214
- * }
215
- * ```
216
197
  */
217
198
  trackBy: TrackByFunction<object>;
218
199
  /**
219
- * The nodes which will be displayed by the TreeView
220
- * ([see example]({% slug databinding_treeview %})).
200
+ * The nodes displayed by the TreeView ([see example](slug:databinding_treeview)).
221
201
  */
222
202
  set nodes(value: any[]);
223
203
  get nodes(): any[];
224
204
  /**
225
- * The fields of the data item that provide the text content of the nodes
226
- * ([see example]({% slug databinding_treeview %})). If the `textField` input is set
227
- * to an array, each hierarchical level uses the field that corresponds to the same
228
- * index in the array, or the last item in the array.
205
+ * The fields of the data item that provide the text content of the nodes ([see example](slug:databinding_treeview)).
206
+ * If set to an array, each level uses the field at the same index or the last item in the array.
229
207
  */
230
208
  textField: string | string[];
231
209
  /**
232
- * A function which determines if a specific node has child nodes
233
- * ([see example]({% slug databinding_treeview %})).
210
+ * A function that determines if a node has child nodes ([see example](slug:databinding_treeview)).
234
211
  */
235
212
  get hasChildren(): (item: object) => boolean;
236
213
  set hasChildren(callback: (item: object) => boolean);
237
214
  /**
238
- * A function which determines if a specific node is checked
239
- * ([see example]({% slug checkboxes_treeview %}#toc-modifying-the-checked-state)).
215
+ * A function that determines if a node is checked ([see example](slug:checkboxes_treeview#toc-modifying-the-checked-state)).
240
216
  */
241
217
  get isChecked(): (item: object, index: string) => CheckedState;
242
218
  set isChecked(callback: (item: object, index: string) => CheckedState);
243
219
  /**
244
- * A function which determines if a specific node is disabled.
220
+ * A function that determines if a node is disabled.
245
221
  */
246
222
  isDisabled: (item: object, index: string) => boolean;
247
223
  /**
248
- * A function which determines if a specific node has a checkbox.
249
- *
250
- * > If there is no checkbox for a node, then this node is not checkable and is excluded from any built-in check functionality.
224
+ * A function that determines if a node has a checkbox. If there is no checkbox, the node is not checkable and is excluded from built-in check functionality.
251
225
  */
252
226
  hasCheckbox: (item: object, index: string) => boolean;
253
227
  /**
254
- * A function which determines if a specific node is expanded.
228
+ * A function that determines if a node is expanded.
255
229
  */
256
230
  get isExpanded(): (item: object, index: string) => boolean;
257
231
  set isExpanded(callback: (item: object, index: string) => boolean);
258
232
  /**
259
- * A function which determines if a specific node is selected
260
- * ([see example]({% slug selection_treeview %}#toc-modifying-the-selection)).
233
+ * A function that determines if a node is selected ([see example](slug:selection_treeview#modifying-the-selection)).
261
234
  */
262
235
  get isSelected(): (item: object, index: string) => boolean;
263
236
  set isSelected(callback: (item: object, index: string) => boolean);
264
237
  /**
265
- * A callback which determines whether a TreeView node should be rendered as hidden. The utility .k-hidden class is used to hide the nodes.
266
- * Useful for custom filtering implementations.
238
+ * A callback that determines whether a TreeView node should be rendered as hidden. Uses the `.k-hidden` utility class. Useful for custom filtering.
239
+ *
267
240
  */
268
241
  isVisible: (item: object, index: string) => boolean;
269
242
  /**
270
- * Determines whether the TreeView keyboard navigable is enabled.
243
+ * Enables keyboard navigation for the TreeView.
244
+ *
245
+ * @default true
271
246
  */
272
247
  navigable: boolean;
273
248
  /**
274
- * A function which provides the child nodes for a given parent node
275
- * ([see example]({% slug databinding_treeview %})).
249
+ * A function that provides the child nodes for a given parent node ([see example](slug:databinding_treeview)).
276
250
  */
277
251
  children: (item: object) => Observable<object[]>;
278
252
  /**
279
- * Indicates whether the child nodes will be fetched on node expand or will be initially prefetched.
253
+ * Indicates whether child nodes are fetched on expand or initally prefetched.
254
+ *
280
255
  * @default true
281
256
  */
282
257
  loadOnDemand: boolean;
283
258
  /**
284
- * Renders the built-in input element for filtering the TreeView.
285
- * If set to `true`, the component emits the `filterChange` event, which can be used to [filter the TreeView manually]({% slug filtering_treeview %}#toc-manual-filtering).
286
- * A built-in filtering implementation is available to use with the [`kendoTreeViewHierarchyBinding`]({% slug api_treeview_hierarchybindingdirective %}) and [`kendoTreeViewFlatDataBinding`]({% slug api_treeview_flatdatabindingdirective %}) directives.
259
+ * Renders the built-in input element for filtering. If `true`, emits the `filterChange` event that can be handled for [manual filtering](slug:filtering_treeview#toc-manual-filtering).
260
+ * Built-in filtering is available with [`kendoTreeViewHierarchyBinding`](slug:api_treeview_hierarchybindingdirective) and [`kendoTreeViewFlatDataBinding`](slug:api_treeview_flatdatabindingdirective) directives.
261
+ *
262
+ * @default false
287
263
  */
288
264
  filterable: boolean;
289
265
  /**
290
- * Sets an initial value of the built-in input element used for filtering.
266
+ * Sets the initial value of the built-in filter input.
291
267
  */
292
268
  filter: string;
293
269
  /**
294
270
  * Sets the size of the component.
295
271
  *
296
- * The possible values are:
297
- * * `small`
298
- * * `medium` (default)
299
- * * `large`
300
- * * `none`
272
+ * @default 'medium'
301
273
  */
302
274
  set size(size: TreeViewSize);
303
275
  get size(): TreeViewSize;
@@ -307,7 +279,8 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
307
279
  */
308
280
  get treeviewId(): string;
309
281
  /**
310
- * Indicates whether only parent nodes should be disabled or their child nodes as well
282
+ * Indicates whether only parent nodes should be disabled or their child nodes as well.
283
+ *
311
284
  * @default false
312
285
  */
313
286
  disableParentNodesOnly: boolean;
@@ -345,47 +318,22 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
345
318
  */
346
319
  blur(): void;
347
320
  /**
348
- * Focuses the first focusable item in the TreeView component if no hierarchical index is provided.
349
- *
350
- * @example
351
- * ```ts
352
- * import { Component } from '@angular/core';
353
- *
354
- * @Component({
355
- * selector: 'my-app',
356
- * template: `
357
- * <button (click)="treeview.focus('1')">Focuses the second node</button>
358
- * <kendo-treeview
359
- * #treeview
360
- * [nodes]="data"
361
- * textField="text"
362
- * >
363
- * </kendo-treeview>
364
- * `
365
- * })
366
- * export class AppComponent {
367
- * public data: any[] = [
368
- * { text: "Furniture" },
369
- * { text: "Decor" }
370
- * ];
371
- * }
372
- * ```
321
+ * Focuses the first focusable item in the TreeView if no hierarchical index is provided.
373
322
  */
374
323
  focus(index?: string): void;
375
324
  /**
376
- * Based on the specified index, returns the TreeItemLookup node.
325
+ * Returns the `TreeItemLookup` node for the specified index.
377
326
  *
378
327
  * @param index - The index of the node.
379
- * @returns {TreeItemLookup} - The item that was searched (looked up).
328
+ * @returns {TreeItemLookup} - The looked up item.
380
329
  */
381
330
  itemLookup(index: string): TreeItemLookup;
382
331
  /**
383
- * Triggers the [`children`]({% slug api_treeview_treeviewcomponent %}#toc-children) function for every expanded node,
384
- * causing all rendered child nodes to be fetched again.
332
+ * Calls the [`children`](slug:api_treeview_treeviewcomponent#children) function for every expanded node and fetches all rendered child nodes again.
385
333
  */
386
334
  rebindChildren(): void;
387
335
  /**
388
- * Triggers the `expand` event for the provided node and displays it's loading indicator.
336
+ * Triggers the `expand` event for the provided node and shows its loading indicator.
389
337
  */
390
338
  expandNode(item: any, index: string): void;
391
339
  /**
@@ -393,20 +341,16 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
393
341
  */
394
342
  collapseNode(item: any, index: string): void;
395
343
  /**
396
- * Gets the current page size of the checked data item children collection
397
- * ([see example]({% slug loadmorebutton_treeview %}#toc-managing-page-sizes)).
398
- *
399
- * > Since the root nodes collection is not associated with any parent data item, pass `null` as `dataItem` param to get its page size.
344
+ * Gets the current page size of the data item's children collection ([see example](slug:loadmorebutton_treeview#managing-page-sizes)).
345
+ * Pass `null` as `dataItem` to get the root collection's page size.
400
346
  *
401
347
  * @param dataItem {any} - The parent data item of the targeted collection.
402
- * @returns {number} - The page size of the checked data item children collection.
348
+ * @returns {number} - The page size of the data item's children collection.
403
349
  */
404
350
  getNodePageSize(dataItem: any): number;
405
351
  /**
406
- * Sets the page size of the targeted data item children collection
407
- * ([see example]({% slug loadmorebutton_treeview %}#toc-managing-page-sizes)).
408
- *
409
- * > Since the root nodes collection is not associated with any parent data item, pass `null` as `dataItem` param to target its page size.
352
+ * Sets the page size of the data item's children collection ([see example](slug:loadmorebutton_treeview#managing-page-sizes)).
353
+ * Pass `null` as `dataItem` to set the root collection's page size.
410
354
  *
411
355
  * @param dataItem {any} - The parent data item of the targeted collection.
412
356
  * @param pageSize {number} - The new page size.
@@ -20,6 +20,21 @@ import * as i14 from "./load-more/load-more-button-template.directive";
20
20
  import * as i15 from "./localization/custom-messages.component";
21
21
  /**
22
22
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the TreeView component.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * import { NgModule } from '@angular/core';
27
+ * import { BrowserModule } from '@angular/platform-browser';
28
+ * import { TreeViewModule } from '@progress/kendo-angular-treeview';
29
+ * import { AppComponent } from './app.component';
30
+ *
31
+ * @NgModule({
32
+ * imports: [BrowserModule, TreeViewModule],
33
+ * declarations: [AppComponent],
34
+ * bootstrap: [AppComponent]
35
+ * })
36
+ * export class AppModule {}
37
+ * ```
23
38
  */
24
39
  export declare class TreeViewModule {
25
40
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewModule, never>;