import {Component, Input} from '@angular/core';
import {HelperFunctions} from "../../utils/HelperFunctions.class";
@Component({
selector: 'relatedTo',
template: `
threshold) ? ' uk-margin-remove-bottom' : '')">
- Related to
-
{{item['labelContext']}}
{{item['labelCategory']}}
: {{item['labelConcept']}}
{{item['labelContext']}}
{{item['labelCategory']}}
: {{item['labelConcept']}}
threshold" class="uk-text-right uk-margin-bottom">
View less
threshold" class="uk-text-right uk-margin-bottom">
View more
`
})
export class RelatedToComponent {
@Input() contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string, "inline": boolean}[];
public threshold: number = 5;
public showNum: number = 5;
constructor () {}
ngOnInit() {}
public scroll() {
HelperFunctions.scroll();
}
}