import {Component, ElementRef, Input, ViewChild} from '@angular/core'; @Component({ selector: 'showTitle', template: `

[no title available] [no title available]
No title available
` }) export class ShowTitleComponent { @Input() titleName: string; @Input() title: { [key: string]: string }; @Input() iconClass:string; @Input() classNames: string = ""; @Input() isSticky: boolean = false; @ViewChild("titleDiv") titleDiv: ElementRef; constructor () {} get showTitleTooltip():boolean { return !!this.titleDiv && (this.titleDiv.nativeElement.clientHeight >= 5 * 21); } }