import {Component, EventEmitter, Input, OnInit, Output, TemplateRef, ViewEncapsulation} from '@angular/core'; import {NodeInterface} from '../../interfaces/node.interface'; @Component({ selector: 'app-side-view', templateUrl: './side-view.component.html', styleUrls: ['./side-view.component.scss'], encapsulation: ViewEncapsulation.None }) export class SideViewComponent implements OnInit { @Input() sideViewTemplate: TemplateRef; @Input() node: NodeInterface; @Input() allowFolderDownload = false; @Output() clickEvent = new EventEmitter(); constructor() { } ngOnInit() { } onClick(event: any, type: string) { this.clickEvent.emit({type: type, event: event, node: this.node}); } }