@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
50 lines (49 loc) • 2.55 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { BaseBindingDirective } from './base-binding.directive';
import { DataBoundTreeComponent } from './data-bound-tree-component';
import { RowReorderService } from '../row-reordering/row-reorder.service';
import { RowReorderEvent } from '../row-reordering/types';
import * as i0 from "@angular/core";
/**
* Represents the Kendo for Angular UI TreeList flat binding directive.
* Use this directive to bind the TreeList to a flat array of objects using `idField` and `parentIdField` to define the hierarchy.
* Handles in-memory data operations [sorting]({% slug sorting_treelist %}), [aggregation]({% slug treelist_with_aggregates %})
* and [filtering]({% slug filtering_treelist %}). [More information and examples]({% slug databinding_treelist %}).
*
*/
export declare class FlatBindingDirective extends BaseBindingDirective {
protected component: DataBoundTreeComponent;
protected rowReorderService: RowReorderService;
/**
* Sets the name of the field that contains the identifier of the parent node.
*/
set parentIdField(value: string);
get parentIdField(): string;
/**
* Sets the name of the field that contains the unique identifier of the node.
*/
set idField(value: string);
get idField(): string;
/**
* Sets the array of data that populates the TreeList.
*/
data: any[];
idGetter: any;
idSetter: any;
parentIdGetter: any;
parentIdSetter: any;
constructor(component: DataBoundTreeComponent, rowReorderService: RowReorderService);
private _parentIdField;
private _idField;
/**
* @hidden
*/
getChildren(item?: any): any;
protected itemKey(item: any): void;
protected onRowReorder(ev: RowReorderEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FlatBindingDirective, [null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FlatBindingDirective, "[kendoTreeListFlatBinding]", ["kendoTreeListFlatBinding"], { "parentIdField": { "alias": "parentIdField"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "data": { "alias": "kendoTreeListFlatBinding"; "required": false; }; }, {}, never, never, true, never>;
}