ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
32 lines (31 loc) • 1.72 kB
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { Direction, Directionality } from '@angular/cdk/bidi';
import { DataSource } from '@angular/cdk/collections';
import { CdkTree, TreeControl } from '@angular/cdk/tree';
import { ChangeDetectorRef, IterableDiffer, IterableDiffers, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
import { Observable, Subject } from 'rxjs';
import { BooleanInput, NzSafeAny } from 'ng-zorro-antd/core/types';
export declare class NzTreeView<T> extends CdkTree<T> implements OnInit, OnDestroy {
protected differs: IterableDiffers;
protected changeDetectorRef: ChangeDetectorRef;
noAnimation?: NzNoAnimationDirective | undefined;
private directionality?;
static ngAcceptInputType_nzDirectoryTree: BooleanInput;
static ngAcceptInputType_nzBlockNode: BooleanInput;
private destroy$;
dir: Direction;
_dataSourceChanged: Subject<void>;
treeControl: TreeControl<T, NzSafeAny>;
get dataSource(): DataSource<T> | Observable<T[]> | T[];
set dataSource(dataSource: DataSource<T> | Observable<T[]> | T[]);
nzDirectoryTree: boolean;
nzBlockNode: boolean;
constructor(differs: IterableDiffers, changeDetectorRef: ChangeDetectorRef, noAnimation?: NzNoAnimationDirective | undefined, directionality?: Directionality | undefined);
ngOnInit(): void;
ngOnDestroy(): void;
renderNodeChanges(data: T[] | ReadonlyArray<T>, dataDiffer?: IterableDiffer<T>, viewContainer?: ViewContainerRef, parentData?: T): void;
}