source: trip-planner-front/node_modules/@angular/cdk/tree/padding.d.ts@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.3 KB
Line 
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 */
8import { Directionality } from '@angular/cdk/bidi';
9import { NumberInput } from '@angular/cdk/coercion';
10import { ElementRef, OnDestroy } from '@angular/core';
11import { CdkTree, CdkTreeNode } from './tree';
12/**
13 * Indent for the children tree dataNodes.
14 * This directive will add left-padding to the node to show hierarchy.
15 */
16export declare class CdkTreeNodePadding<T, K = T> implements OnDestroy {
17 private _treeNode;
18 private _tree;
19 private _element;
20 private _dir;
21 /** Current padding value applied to the element. Used to avoid unnecessarily hitting the DOM. */
22 private _currentPadding;
23 /** Subject that emits when the component has been destroyed. */
24 private readonly _destroyed;
25 /** CSS units used for the indentation value. */
26 indentUnits: string;
27 /** The level of depth of the tree node. The padding will be `level * indent` pixels. */
28 get level(): number;
29 set level(value: number);
30 _level: number;
31 /**
32 * The indent for each level. Can be a number or a CSS string.
33 * Default number 40px from material design menu sub-menu spec.
34 */
35 get indent(): number | string;
36 set indent(indent: number | string);
37 _indent: number;
38 constructor(_treeNode: CdkTreeNode<T, K>, _tree: CdkTree<T, K>, _element: ElementRef<HTMLElement>, _dir: Directionality);
39 ngOnDestroy(): void;
40 /** The padding indent value for the tree node. Returns a string with px numbers if not null. */
41 _paddingIndent(): string | null;
42 _setPadding(forceChange?: boolean): void;
43 /**
44 * This has been extracted to a util because of TS 4 and VE.
45 * View Engine doesn't support property rename inheritance.
46 * TS 4.0 doesn't allow properties to override accessors or vice-versa.
47 * @docs-private
48 */
49 protected _setLevelInput(value: number): void;
50 /**
51 * This has been extracted to a util because of TS 4 and VE.
52 * View Engine doesn't support property rename inheritance.
53 * TS 4.0 doesn't allow properties to override accessors or vice-versa.
54 * @docs-private
55 */
56 protected _setIndentInput(indent: number | string): void;
57 static ngAcceptInputType_level: NumberInput;
58}
Note: See TracBrowser for help on using the repository browser.