@progress/kendo-angular-treeview 22.1.0-develop.8 → 23.0.0-develop.1
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/check-mode.d.ts +1 -1
- package/check.directive.d.ts +4 -4
- package/checkable-settings.d.ts +2 -2
- package/data-bound-component.d.ts +1 -1
- package/disable.directive.d.ts +1 -1
- package/drag-and-drop/drag-and-drop-editing.directive.d.ts +6 -6
- package/drag-and-drop/drag-and-drop.directive.d.ts +10 -10
- package/drag-and-drop/drag-clue/drag-clue-template.directive.d.ts +4 -4
- package/drag-and-drop/drop-hint/drop-hint-template.directive.d.ts +4 -4
- package/drag-and-drop/models/drop-action.d.ts +1 -1
- package/drag-and-drop/models/editing-service.d.ts +4 -4
- package/drag-and-drop/models/tree-item-filter-state.d.ts +1 -1
- package/drag-and-drop/models/treeitem-add-remove-args.d.ts +2 -2
- package/drag-and-drop/models/treeitem-drag-event.d.ts +2 -2
- package/drag-and-drop/models/treeitem-drag-start-event.d.ts +1 -1
- package/drag-and-drop/models/treeitem-drop-event.d.ts +1 -1
- package/expand.directive.d.ts +2 -2
- package/fesm2022/progress-kendo-angular-treeview.mjs +141 -134
- package/filter-state.interface.d.ts +1 -1
- package/load-more/load-more-button-template.directive.d.ts +1 -1
- package/load-more/load-more-request-args.d.ts +3 -3
- package/load-more/load-more.directive.d.ts +4 -4
- package/node-template.directive.d.ts +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/schematics/ngAdd/index.js +4 -4
- package/selection/select.directive.d.ts +3 -3
- package/size.d.ts +1 -1
- package/treeitem-lookup.interface.d.ts +2 -2
- package/treeitem.interface.d.ts +2 -2
- package/treeview-group.component.d.ts +4 -7
- package/{treeview-item-content.directive.d.ts → treeview-item-content-wrapper.directive.d.ts} +4 -4
- package/treeview.component.d.ts +21 -21
|
@@ -6,7 +6,7 @@ import { TreeItemFilterState } from "./drag-and-drop/models/tree-item-filter-sta
|
|
|
6
6
|
import { TreeViewFilterSettings } from "./treeview-filter-settings";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the current filter state of the TreeView.
|
|
9
|
-
* Emitted by the [`filterStateChange`](
|
|
9
|
+
* Emitted by the [`filterStateChange`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#filterstatechange) event.
|
|
10
10
|
*/
|
|
11
11
|
export interface FilterState {
|
|
12
12
|
/**
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Represents a directive for customizing the load more button in the TreeView.
|
|
9
9
|
*
|
|
10
10
|
* To define the template, nest an `<ng-template>` tag with the `kendoTreeViewLoadMoreButtonTemplate` directive inside a `<kendo-treeview>` tag
|
|
11
|
-
* ([see example](
|
|
11
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#button-template)).
|
|
12
12
|
*
|
|
13
13
|
* The template context provides the following variable:
|
|
14
14
|
* - `let-index="index"`—The hierarchical index of the load more button node.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Represents the arguments that the [`loadMoreNodes`](
|
|
6
|
+
* Represents the arguments that the [`loadMoreNodes`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective#kendotreeviewloadmore) function receives when the load more button is pressed.
|
|
7
7
|
*/
|
|
8
8
|
export interface LoadMoreRequestArgs {
|
|
9
9
|
/**
|
|
@@ -16,8 +16,8 @@ export interface LoadMoreRequestArgs {
|
|
|
16
16
|
skip: number;
|
|
17
17
|
/**
|
|
18
18
|
* The recommended number of new items to load.
|
|
19
|
-
* This value matches the [`pageSize`](
|
|
20
|
-
* You can return any number of items—the page size automatically adjusts based on how many items the [`loadMoreNodes`](
|
|
19
|
+
* This value matches the [`pageSize`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective#pagesize) set in the [`kendoTreeViewLoadMore`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective) directive.
|
|
20
|
+
* You can return any number of items—the page size automatically adjusts based on how many items the [`loadMoreNodes`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective#kendotreeviewloadmore) function actually returns.
|
|
21
21
|
*/
|
|
22
22
|
take: number;
|
|
23
23
|
}
|
|
@@ -8,7 +8,7 @@ import { LoadMoreRequestArgs } from './load-more-request-args';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Represents the directive that enables you to display only a limited number of nodes per level
|
|
11
|
-
* ([see example](
|
|
11
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button)).
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```html
|
|
@@ -29,7 +29,7 @@ export declare class LoadMoreDirective {
|
|
|
29
29
|
/**
|
|
30
30
|
* Sets the callback function that runs when the load more button is clicked.
|
|
31
31
|
* Provide a function when you fetch additional nodes on demand
|
|
32
|
-
* ([see example](
|
|
32
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#remote-data)).
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
set loadMoreNodes(loadMoreNodes: ((loadMoreArgs: LoadMoreRequestArgs) => Observable<any[]>) | string);
|
|
@@ -41,13 +41,13 @@ export declare class LoadMoreDirective {
|
|
|
41
41
|
/**
|
|
42
42
|
* Sets the total number of root nodes.
|
|
43
43
|
* Use this property when you fetch additional nodes on demand
|
|
44
|
-
* ([see example](
|
|
44
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#remote-data)).
|
|
45
45
|
*/
|
|
46
46
|
totalRootNodes: number;
|
|
47
47
|
/**
|
|
48
48
|
* Sets the field that contains the total number of child nodes for the data item.
|
|
49
49
|
* Use this property when you fetch additional nodes on demand
|
|
50
|
-
* ([see example](
|
|
50
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#remote-data)).
|
|
51
51
|
*/
|
|
52
52
|
totalField: string;
|
|
53
53
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { TemplateRef } from "@angular/core";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents the template for TreeView nodes ([more information and example](
|
|
8
|
+
* Represents the template for TreeView nodes ([more information and example](https://www.telerik.com/kendo-angular-ui/components/treeview/node-template)).
|
|
9
9
|
*
|
|
10
10
|
* Use this template to customize the content of the nodes. To define the node template, nest an `<ng-template>`
|
|
11
11
|
* tag with the `kendoTreeViewNodeTemplate` directive inside a `<kendo-treeview>` tag.
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "
|
|
10
|
+
"publishDate": 1770286932,
|
|
11
|
+
"version": "23.0.0-develop.1",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-treeview",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-develop.1",
|
|
4
4
|
"description": "Kendo UI TreeView for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1770286932,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"@angular/common": "19 - 21",
|
|
29
29
|
"@angular/core": "19 - 21",
|
|
30
30
|
"@angular/platform-browser": "19 - 21",
|
|
31
|
-
"@progress/kendo-licensing": "^1.
|
|
32
|
-
"@progress/kendo-angular-common": "
|
|
33
|
-
"@progress/kendo-angular-inputs": "
|
|
34
|
-
"@progress/kendo-angular-icons": "
|
|
35
|
-
"@progress/kendo-angular-l10n": "
|
|
31
|
+
"@progress/kendo-licensing": "^1.10.0",
|
|
32
|
+
"@progress/kendo-angular-common": "23.0.0-develop.1",
|
|
33
|
+
"@progress/kendo-angular-inputs": "23.0.0-develop.1",
|
|
34
|
+
"@progress/kendo-angular-icons": "23.0.0-develop.1",
|
|
35
|
+
"@progress/kendo-angular-l10n": "23.0.0-develop.1",
|
|
36
36
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"tslib": "^2.3.1",
|
|
40
|
-
"@progress/kendo-angular-schematics": "
|
|
40
|
+
"@progress/kendo-angular-schematics": "23.0.0-develop.1",
|
|
41
41
|
"@progress/kendo-common": "^1.0.1",
|
|
42
42
|
"@progress/kendo-draggable": "^3.0.2"
|
|
43
43
|
},
|
|
@@ -9,10 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeViewModule', package: 'treeview', peerDependencies: {
|
|
11
11
|
// Peers of kendo-angular-inputs
|
|
12
|
-
'@progress/kendo-angular-buttons': '
|
|
13
|
-
'@progress/kendo-angular-dialog': '
|
|
14
|
-
'@progress/kendo-angular-intl': '
|
|
15
|
-
'@progress/kendo-angular-popup': '
|
|
12
|
+
'@progress/kendo-angular-buttons': '23.0.0-develop.1',
|
|
13
|
+
'@progress/kendo-angular-dialog': '23.0.0-develop.1',
|
|
14
|
+
'@progress/kendo-angular-intl': '23.0.0-develop.1',
|
|
15
|
+
'@progress/kendo-angular-popup': '23.0.0-develop.1',
|
|
16
16
|
'@progress/kendo-drawing': '^1.9.3',
|
|
17
17
|
// Peer dependency of icons
|
|
18
18
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
@@ -11,7 +11,7 @@ import { NavigationService } from '../navigation/navigation.service';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* Manages the in-memory selection state of TreeView nodes
|
|
14
|
-
* ([see example](
|
|
14
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection)).
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```html
|
|
@@ -40,12 +40,12 @@ export declare class SelectDirective implements OnDestroy, OnChanges {
|
|
|
40
40
|
selectKey: string | ((context: TreeItem) => any);
|
|
41
41
|
/**
|
|
42
42
|
* Sets the current selection mode
|
|
43
|
-
* ([see example](
|
|
43
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection)).
|
|
44
44
|
*/
|
|
45
45
|
selection: boolean | SelectableSettings | string;
|
|
46
46
|
/**
|
|
47
47
|
* Defines the collection that stores the selected keys
|
|
48
|
-
* ([see example](
|
|
48
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection)).
|
|
49
49
|
*/
|
|
50
50
|
selectedKeys: any[];
|
|
51
51
|
/**
|
package/size.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { TreeItem } from './treeitem.interface';
|
|
6
6
|
/**
|
|
7
7
|
* Represents a node-tree lookup structure that stores information about the current node, its parent, and its children
|
|
8
|
-
* ([see example](
|
|
8
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/checkboxes#modifying-the-checked-state)).
|
|
9
9
|
*/
|
|
10
10
|
export interface ItemLookup {
|
|
11
11
|
/**
|
|
@@ -23,7 +23,7 @@ export interface ItemLookup {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Represents a node-tree lookup structure that stores information about the current node, its parent, and its children.
|
|
26
|
-
* Used in the [`checkedChange`](
|
|
26
|
+
* Used in the [`checkedChange`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#checkedchange) event of the TreeView ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/checkboxes#modifying-the-checked-state)).
|
|
27
27
|
*/
|
|
28
28
|
export interface TreeItemLookup {
|
|
29
29
|
/**
|
package/treeitem.interface.d.ts
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
export interface TreeItem {
|
|
9
9
|
/**
|
|
10
10
|
* The data item associated with the TreeView node
|
|
11
|
-
* ([see example](
|
|
11
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection#modifying-the-selection-behavior)).
|
|
12
12
|
*/
|
|
13
13
|
dataItem: any;
|
|
14
14
|
/**
|
|
15
15
|
* The auto-generated hierarchical index of the TreeView node
|
|
16
|
-
* ([see example](
|
|
16
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection#modifying-the-selection-behavior)).
|
|
17
17
|
*/
|
|
18
18
|
index: string;
|
|
19
19
|
}
|
|
@@ -35,15 +35,15 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
35
35
|
/**
|
|
36
36
|
* @hidden
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
chevronDownIcon: SVGIcon;
|
|
39
39
|
/**
|
|
40
40
|
* @hidden
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
chevronRightIcon: SVGIcon;
|
|
43
43
|
/**
|
|
44
44
|
* @hidden
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
chevronLeftIcon: SVGIcon;
|
|
47
47
|
/**
|
|
48
48
|
* @hidden
|
|
49
49
|
*/
|
|
@@ -70,6 +70,7 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
70
70
|
initialNodesLoaded: boolean;
|
|
71
71
|
loadingMoreNodes: boolean;
|
|
72
72
|
isItemExpandable: (node: any, index: any) => boolean;
|
|
73
|
+
isContentDisabled(node: any, index: any): boolean;
|
|
73
74
|
getFontIcon(node: any, index: any): string;
|
|
74
75
|
getSvgIcon(node: any, index: any): SVGIcon;
|
|
75
76
|
get moreNodesAvailable(): boolean;
|
|
@@ -116,10 +117,6 @@ export declare class TreeViewGroupComponent implements OnChanges, OnInit, OnDest
|
|
|
116
117
|
* @hidden
|
|
117
118
|
*/
|
|
118
119
|
isItemDisabled(node: any, index: any): boolean;
|
|
119
|
-
/**
|
|
120
|
-
* @hidden
|
|
121
|
-
*/
|
|
122
|
-
setItemClasses(dataLength: number, index: any): string;
|
|
123
120
|
private loadMoreLocalNodes;
|
|
124
121
|
private fetchMoreNodes;
|
|
125
122
|
private setNodeChildren;
|
package/{treeview-item-content.directive.d.ts → treeview-item-content-wrapper.directive.d.ts}
RENAMED
|
@@ -9,9 +9,9 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*
|
|
12
|
-
* A directive which manages the
|
|
12
|
+
* A directive which manages the states of the TreeView items.
|
|
13
13
|
*/
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class TreeViewItemContentWrapperDirective implements OnChanges, OnDestroy {
|
|
15
15
|
private element;
|
|
16
16
|
private navigationService;
|
|
17
17
|
private selectionService;
|
|
@@ -27,6 +27,6 @@ export declare class TreeViewItemContentDirective implements OnChanges, OnDestro
|
|
|
27
27
|
private updateFocusClass;
|
|
28
28
|
private updateSelectionClass;
|
|
29
29
|
private render;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewItemContentWrapperDirective, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeViewItemContentWrapperDirective, "[kendoTreeViewItemContentWrapper]", never, { "dataItem": { "alias": "dataItem"; "required": false; }; "index": { "alias": "index"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
32
|
}
|
package/treeview.component.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ 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](
|
|
29
|
+
* Represents the [Kendo UI TreeView component for Angular](https://www.telerik.com/kendo-angular-ui/components/treeview).
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```html
|
|
@@ -110,12 +110,12 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
110
110
|
*/
|
|
111
111
|
collapse: EventEmitter<TreeItem>;
|
|
112
112
|
/**
|
|
113
|
-
* Fires just before node dragging starts ([see example](
|
|
113
|
+
* Fires just before node dragging starts ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#setup)). This event is preventable.
|
|
114
114
|
* Prevent the default event to stop drag hint creation and further drag events.
|
|
115
115
|
*/
|
|
116
116
|
nodeDragStart: EventEmitter<TreeItemDragStartEvent>;
|
|
117
117
|
/**
|
|
118
|
-
* Fires when an item is being dragged ([see example](
|
|
118
|
+
* Fires when an item is being dragged ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#setup)).
|
|
119
119
|
*/
|
|
120
120
|
nodeDrag: EventEmitter<TreeItemDragEvent>;
|
|
121
121
|
/**
|
|
@@ -124,7 +124,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
124
124
|
*/
|
|
125
125
|
filterStateChange: EventEmitter<FilterState>;
|
|
126
126
|
/**
|
|
127
|
-
* Fires on the target TreeView when a dragged item is dropped ([see example](
|
|
127
|
+
* Fires on the target TreeView when a dragged item is dropped ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#setup)).
|
|
128
128
|
*
|
|
129
129
|
* Prevent the default event (`event.preventDefault()`) or set the event as invalid (`event.setValid(false)`) to stop the `addItem` and `removeItem` events from triggering.
|
|
130
130
|
*
|
|
@@ -132,23 +132,23 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
132
132
|
*/
|
|
133
133
|
nodeDrop: EventEmitter<TreeItemDropEvent>;
|
|
134
134
|
/**
|
|
135
|
-
* Fires on the source TreeView after the dragged item is dropped ([see example](
|
|
135
|
+
* Fires on the source TreeView after the dragged item is dropped ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#setup)).
|
|
136
136
|
*/
|
|
137
137
|
nodeDragEnd: EventEmitter<TreeItemDragEvent>;
|
|
138
138
|
/**
|
|
139
|
-
* Fires after a dragged item is dropped ([see example](
|
|
139
|
+
* Fires after a dragged item is dropped ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#setup)). Called on the TreeView where the item is dropped.
|
|
140
140
|
*/
|
|
141
141
|
addItem: EventEmitter<TreeItemAddRemoveArgs>;
|
|
142
142
|
/**
|
|
143
|
-
* Fires after a dragged item is dropped ([see example](
|
|
143
|
+
* Fires after a dragged item is dropped ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#setup)). Called on the TreeView from where the item is dragged.
|
|
144
144
|
*/
|
|
145
145
|
removeItem: EventEmitter<TreeItemAddRemoveArgs>;
|
|
146
146
|
/**
|
|
147
|
-
* Fires when a TreeView node checkbox is selected ([see example](
|
|
147
|
+
* Fires when a TreeView node checkbox is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/checkboxes#modifying-the-checked-state)).
|
|
148
148
|
*/
|
|
149
149
|
checkedChange: EventEmitter<TreeItemLookup>;
|
|
150
150
|
/**
|
|
151
|
-
* Fires when a TreeView node is selected ([see example](
|
|
151
|
+
* Fires when a TreeView node is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection#modifying-the-selection-behavior)).
|
|
152
152
|
*/
|
|
153
153
|
selectionChange: EventEmitter<TreeItem>;
|
|
154
154
|
/**
|
|
@@ -199,22 +199,22 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
199
199
|
*/
|
|
200
200
|
trackBy: TrackByFunction<object>;
|
|
201
201
|
/**
|
|
202
|
-
* The nodes displayed by the TreeView ([see example](
|
|
202
|
+
* The nodes displayed by the TreeView ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/data-binding)).
|
|
203
203
|
*/
|
|
204
204
|
set nodes(value: any[]);
|
|
205
205
|
get nodes(): any[];
|
|
206
206
|
/**
|
|
207
|
-
* The fields of the data item that provide the text content of the nodes ([see example](
|
|
207
|
+
* The fields of the data item that provide the text content of the nodes ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/data-binding)).
|
|
208
208
|
* If set to an array, each level uses the field at the same index or the last item in the array.
|
|
209
209
|
*/
|
|
210
210
|
textField: string | string[];
|
|
211
211
|
/**
|
|
212
|
-
* A function that determines if a node has child nodes ([see example](
|
|
212
|
+
* A function that determines if a node has child nodes ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/data-binding)).
|
|
213
213
|
*/
|
|
214
214
|
get hasChildren(): (item: object) => boolean;
|
|
215
215
|
set hasChildren(callback: (item: object) => boolean);
|
|
216
216
|
/**
|
|
217
|
-
* A function that determines if a node is checked ([see example](
|
|
217
|
+
* A function that determines if a node is checked ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/checkboxes#modifying-the-checked-state)).
|
|
218
218
|
*/
|
|
219
219
|
get isChecked(): (item: object, index: string) => CheckedState;
|
|
220
220
|
set isChecked(callback: (item: object, index: string) => CheckedState);
|
|
@@ -232,7 +232,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
232
232
|
get isExpanded(): (item: object, index: string) => boolean;
|
|
233
233
|
set isExpanded(callback: (item: object, index: string) => boolean);
|
|
234
234
|
/**
|
|
235
|
-
* A function that determines if a node is selected ([see example](
|
|
235
|
+
* A function that determines if a node is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection#modifying-the-selection-behavior)).
|
|
236
236
|
*/
|
|
237
237
|
get isSelected(): (item: object, index: string) => boolean;
|
|
238
238
|
set isSelected(callback: (item: object, index: string) => boolean);
|
|
@@ -248,7 +248,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
248
248
|
*/
|
|
249
249
|
navigable: boolean;
|
|
250
250
|
/**
|
|
251
|
-
* A function that provides the child nodes for a given parent node ([see example](
|
|
251
|
+
* A function that provides the child nodes for a given parent node ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/data-binding)).
|
|
252
252
|
*/
|
|
253
253
|
children: (item: object) => Observable<object[]>;
|
|
254
254
|
/**
|
|
@@ -258,8 +258,8 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
258
258
|
*/
|
|
259
259
|
loadOnDemand: boolean;
|
|
260
260
|
/**
|
|
261
|
-
* Renders the built-in input element for filtering. If `true`, emits the `filterChange` event that can be handled for [manual filtering](
|
|
262
|
-
* Built-in filtering is available with [`kendoTreeViewHierarchyBinding`](
|
|
261
|
+
* Renders the built-in input element for filtering. If `true`, emits the `filterChange` event that can be handled for [manual filtering](https://www.telerik.com/kendo-angular-ui/components/treeview/filtering#manual-filtering).
|
|
262
|
+
* Built-in filtering is available with [`kendoTreeViewHierarchyBinding`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/hierarchybindingdirective) and [`kendoTreeViewFlatDataBinding`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/flatdatabindingdirective) directives.
|
|
263
263
|
*
|
|
264
264
|
* @default false
|
|
265
265
|
*/
|
|
@@ -271,7 +271,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
271
271
|
/**
|
|
272
272
|
* Sets the size of the component.
|
|
273
273
|
*
|
|
274
|
-
* @default
|
|
274
|
+
* @default undefined
|
|
275
275
|
*/
|
|
276
276
|
set size(size: TreeViewSize);
|
|
277
277
|
get size(): TreeViewSize;
|
|
@@ -331,7 +331,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
331
331
|
*/
|
|
332
332
|
itemLookup(index: string): TreeItemLookup;
|
|
333
333
|
/**
|
|
334
|
-
* Calls the [`children`](
|
|
334
|
+
* Calls the [`children`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#children) function for every expanded node and fetches all rendered child nodes again.
|
|
335
335
|
*/
|
|
336
336
|
rebindChildren(): void;
|
|
337
337
|
/**
|
|
@@ -343,7 +343,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
343
343
|
*/
|
|
344
344
|
collapseNode(item: any, index: string): void;
|
|
345
345
|
/**
|
|
346
|
-
* Gets the current page size of the data item's children collection ([see example](
|
|
346
|
+
* Gets the current page size of the data item's children collection ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#managing-page-sizes)).
|
|
347
347
|
* Pass `null` as `dataItem` to get the root collection's page size.
|
|
348
348
|
*
|
|
349
349
|
* @param dataItem {any} - The parent data item of the targeted collection.
|
|
@@ -351,7 +351,7 @@ export declare class TreeViewComponent implements OnChanges, OnInit, AfterViewIn
|
|
|
351
351
|
*/
|
|
352
352
|
getNodePageSize(dataItem: any): number;
|
|
353
353
|
/**
|
|
354
|
-
* Sets the page size of the data item's children collection ([see example](
|
|
354
|
+
* Sets the page size of the data item's children collection ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#managing-page-sizes)).
|
|
355
355
|
* Pass `null` as `dataItem` to set the root collection's page size.
|
|
356
356
|
*
|
|
357
357
|
* @param dataItem {any} - The parent data item of the targeted collection.
|