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

Method _setLevelInput

src/cdk/tree/padding.ts:104–110  ·  view source on GitHub ↗

* This has been extracted to a util because of TS 4 and VE. * View Engine doesn't support property rename inheritance. * TS 4.0 doesn't allow properties to override accessors or vice-versa. * @docs-private

(value: number)

Source from the content-addressed store, hash-verified

102 * @docs-private
103 */
104 protected _setLevelInput(value: number) {
105 // Set to null as the fallback value so that _setPadding can fall back to the node level if the
106 // consumer set the directive as `cdkTreeNodePadding=""`. We still want to take this value if
107 // they set 0 explicitly.
108 this._level = isNaN(value) ? null! : value;
109 this._setPadding();
110 }
111
112 /**
113 * This has been extracted to a util because of TS 4 and VE.

Callers 2

levelMethod · 0.95
levelMethod · 0.80

Calls 1

_setPaddingMethod · 0.95

Tested by

no test coverage detected