File

src/app/modules/tree/tree.component.ts

Metadata

Index

Properties

Properties

treeElementRef
Type : ElementRef
Decorators :
@ViewChild('graph')
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);
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""