import {Component, Input} from '@angular/core';
import {HelperFunctions} from "../../utils/HelperFunctions.class";
@Component({
selector: 'fundedBy',
template: `
threshold) ? ' uk-margin-remove-bottom' : '')">
- Funded by
-
threshold" class="uk-text-right uk-margin-bottom">
View less
threshold" class="uk-text-right uk-margin-bottom">
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 threshold: number = 5;
public showNum: number = 5;
constructor () {}
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() {
HelperFunctions.scroll();
}
}