1 |
50169
|
argiro.kok
|
import {Component, Input, Output, EventEmitter} from '@angular/core';
|
2 |
|
|
|
3 |
|
|
@Component({
|
4 |
|
|
selector: 'tabPaging',
|
5 |
|
|
template: `
|
6 |
|
|
<div class="uk-panel" *ngIf="!showAll && length > 10">
|
7 |
|
|
<a (click)="changeShowAll.emit({value: true});">
|
8 |
52096
|
konstantin
|
<div class="uk-float-right">view all {{length | number}}</div>
|
9 |
50169
|
argiro.kok
|
</a>
|
10 |
|
|
</div>
|
11 |
|
|
`
|
12 |
|
|
})
|
13 |
|
|
|
14 |
|
|
export class TabPagingComponent {
|
15 |
|
|
@Input() showAll: boolean;
|
16 |
|
|
@Input() length: number;
|
17 |
|
|
@Output() changeShowAll: EventEmitter<any> = new EventEmitter();
|
18 |
|
|
|
19 |
|
|
constructor () {
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
ngOnInit() {
|
23 |
|
|
}
|
24 |
|
|
}
|