UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

35 lines (34 loc) 2.12 kB
/** * 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 { Observable, Subject } from 'rxjs'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { BooleanInput, NzSafeAny } from 'ng-zorro-antd/core/types'; import * as i0 from "@angular/core"; 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[] | readonly T[], dataDiffer?: IterableDiffer<T>, viewContainer?: ViewContainerRef, parentData?: T): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzTreeView<any>, [null, null, { optional: true; host: true; }, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NzTreeView<any>, "ng-component", never, { "treeControl": "nzTreeControl"; "dataSource": "nzDataSource"; "nzDirectoryTree": "nzDirectoryTree"; "nzBlockNode": "nzBlockNode"; }, {}, never, never>; }