MCPcopy Index your code
hub / github.com/angular/components / _paddingIndent

Method _paddingIndent

src/cdk/tree/padding.ts:79–83  ·  view source on GitHub ↗

The padding indent value for the tree node. Returns a string with px numbers if not null.

()

Source from the content-addressed store, hash-verified

77
78 /** The padding indent value for the tree node. Returns a string with px numbers if not null. */
79 _paddingIndent(): string | null {
80 const nodeLevel = (this._treeNode.data && this._tree._getLevel(this._treeNode.data)) ?? null;
81 const level = this._level == null ? nodeLevel : this._level;
82 return typeof level === 'number' ? `${level * this._indent}${this.indentUnits}` : null;
83 }
84
85 _setPadding(forceChange = false) {
86 const padding = this._paddingIndent();

Callers 1

_setPaddingMethod · 0.95

Calls 1

_getLevelMethod · 0.80

Tested by

no test coverage detected