src/app/modules/tree/tree.component.ts
selector | app-tree |
styleUrls | ./tree.component.scss |
templateUrl | ./tree.component.html |
Properties |
treeElementRef |
Type : ElementRef
|
Decorators :
@ViewChild('graph')
|
Defined in src/app/modules/tree/tree.component.ts:9
|
import { Component, ElementRef, ViewChild } from '@angular/core';
@Component({
selector: 'app-tree',
templateUrl: './tree.component.html',
styleUrls: ['./tree.component.scss'],
})
export class TreeComponent {
@ViewChild('graph') treeElementRef!: ElementRef;
}
<div id="vis" #graph class="scroll-bar-horizontal"></div>
./tree.component.scss
.title-wrapper {
white-space: nowrap;
}
.title {
font-weight: 600;
display: inline-block;
}
.scroll-bar-horizontal {
overflow: scroll;
height: calc(100vh - 4rem);
}