The padding indent value for the tree node. Returns a string with px numbers if not null.
()
| 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(); |