2017-12-19 13:53:46 +01:00
|
|
|
import {Component, Input, Output, EventEmitter} from '@angular/core';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'tabPaging',
|
|
|
|
template: `
|
|
|
|
<div class="uk-panel" *ngIf="!showAll && length > 10">
|
|
|
|
<a (click)="changeShowAll.emit({value: true});">
|
2018-05-18 14:47:26 +02:00
|
|
|
<div class="uk-float-right">view all {{length | number}}</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
`
|
|
|
|
})
|
|
|
|
|
|
|
|
export class TabPagingComponent {
|
|
|
|
@Input() showAll: boolean;
|
|
|
|
@Input() length: number;
|
|
|
|
@Output() changeShowAll: EventEmitter<any> = new EventEmitter();
|
|
|
|
|
|
|
|
constructor () {
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
}
|
|
|
|
}
|