import {Component, Input, ElementRef} from '@angular/core';
@Component({
selector: 'fundedBy',
template: `
- Funded by
-
5">...
`
})
export class FundedByComponent {
@Input() fundedByProjects: { "id": string, "acronym": string, "title": string,
"funderShortname": string, "funderName": string,
"funding": string, "code": string, "provenanceAction": string,
"inline": boolean }[];
public threshold: number = 5;
public showNum: number = 5;
constructor (private element: ElementRef) {}
ngOnInit() {}
public buildFundingTooltip(item: { "id": string, "acronym": string, "title": string,
"funderShortname": string, "funderName": string,
"funding": string, "code": string, "provenanceAction": string, inline: boolean}) {
let tooltipContent: string = ""
return tooltipContent;
}
public scroll() {
console.info("scroll into view");
if (typeof document !== 'undefined') {
this.element.nativeElement.scrollIntoView();
}
}
}