[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { AfterContentInit, DoCheck, ElementRef, IterableDiffers, OnDestroy, OnInit, QueryList } from '@angular/core';
|
---|
| 9 | import { CdkTreeNodeOutlet } from './outlet';
|
---|
| 10 | import { CdkTree, CdkTreeNode } from './tree';
|
---|
| 11 | /**
|
---|
| 12 | * Nested node is a child of `<cdk-tree>`. It works with nested tree.
|
---|
| 13 | * By using `cdk-nested-tree-node` component in tree node template, children of the parent node will
|
---|
| 14 | * be added in the `cdkTreeNodeOutlet` in tree node template.
|
---|
| 15 | * The children of node will be automatically added to `cdkTreeNodeOutlet`.
|
---|
| 16 | */
|
---|
| 17 | export declare class CdkNestedTreeNode<T, K = T> extends CdkTreeNode<T, K> implements AfterContentInit, DoCheck, OnDestroy, OnInit {
|
---|
| 18 | protected _differs: IterableDiffers;
|
---|
| 19 | /** Differ used to find the changes in the data provided by the data source. */
|
---|
| 20 | private _dataDiffer;
|
---|
| 21 | /** The children data dataNodes of current node. They will be placed in `CdkTreeNodeOutlet`. */
|
---|
| 22 | protected _children: T[];
|
---|
| 23 | /** The children node placeholder. */
|
---|
| 24 | nodeOutlet: QueryList<CdkTreeNodeOutlet>;
|
---|
| 25 | constructor(elementRef: ElementRef<HTMLElement>, tree: CdkTree<T, K>, _differs: IterableDiffers);
|
---|
| 26 | ngAfterContentInit(): void;
|
---|
| 27 | ngOnInit(): void;
|
---|
| 28 | ngDoCheck(): void;
|
---|
| 29 | ngOnDestroy(): void;
|
---|
| 30 | /** Add children dataNodes to the NodeOutlet */
|
---|
| 31 | protected updateChildrenNodes(children?: T[]): void;
|
---|
| 32 | /** Clear the children dataNodes. */
|
---|
| 33 | protected _clear(): void;
|
---|
| 34 | /** Gets the outlet for the current node. */
|
---|
| 35 | private _getNodeOutlet;
|
---|
| 36 | }
|
---|