You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.6 KiB
42 lines
1.6 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { TemplateRef } from '@angular/core';
|
|
/** Context provided to the tree node component. */
|
|
import * as ɵngcc0 from '@angular/core';
|
|
export declare class CdkTreeNodeOutletContext<T> {
|
|
/** Data for the node. */
|
|
$implicit: T;
|
|
/** Depth of the node. */
|
|
level: number;
|
|
/** Index location of the node. */
|
|
index?: number;
|
|
/** Length of the number of total dataNodes. */
|
|
count?: number;
|
|
constructor(data: T);
|
|
}
|
|
/**
|
|
* Data node definition for the CdkTree.
|
|
* Captures the node's template and a when predicate that describes when this node should be used.
|
|
*/
|
|
export declare class CdkTreeNodeDef<T> {
|
|
template: TemplateRef<any>;
|
|
/**
|
|
* Function that should return true if this node template should be used for the provided node
|
|
* data and index. If left undefined, this node will be considered the default node template to
|
|
* use when no other when functions return true for the data.
|
|
* For every node, there must be at least one when function that passes or an undefined to
|
|
* default.
|
|
*/
|
|
when: (index: number, nodeData: T) => boolean;
|
|
/** @docs-private */
|
|
constructor(template: TemplateRef<any>);
|
|
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<CdkTreeNodeDef<any>, never>;
|
|
static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<CdkTreeNodeDef<any>, "[cdkTreeNodeDef]", never, { "when": "cdkTreeNodeDefWhen"; }, {}, never>;
|
|
}
|
|
|
|
//# sourceMappingURL=node.d.ts.map
|