Project

General

Profile

1
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
                <div class="uk-float-right">view all {{length}}</div>
9
            </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
}
(15-15/16)