import {Component, Input} from '@angular/core';
import 'rxjs';
@Component({
selector: 'helper',
template: `
0 && !tooltip" [ngClass]=styleName>
0 && tooltip" >
`
})
export class HelperComponent {
@Input() texts = [];
@Input() style:boolean = false;
@Input() styleName:string = '';
@Input() tooltip:boolean = false;
constructor () {}
buildTooltip(): string {
var text:string="";
for(var i=0; i< this.texts.length; i++){
text+=this.texts[i].content;
}
text+="
";
return text;
}
}