import {Component, Input, ElementRef} from '@angular/core';
@Component({
selector: 'fundedBy',
template: `
- Funded By
-
-
View less
- 5">...
- 5" class="uk-text-right">
View more
`
})
export class FundedByComponent {
@Input() fundedByProjects: { "id": string, "acronym": string, "title": string,
"funderShortname": string, "funderName": string,
"funding": string, "code": string, "provenanceAction": string,
"inline": boolean }[];
public showAll: boolean = false;
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();
}
}
}