| .. | .. |
|---|
| 1 | 1 | import { Router, ActivatedRoute } from '@angular/router'; |
|---|
| 2 | 2 | import { MdDialog, MdDialogConfig } from '@angular/material'; |
|---|
| 3 | | -import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core'; |
|---|
| 3 | +import { |
|---|
| 4 | + ITdDataTableColumn, |
|---|
| 5 | + ITdDataTableSortChangeEvent, |
|---|
| 6 | + TdDataTableService, |
|---|
| 7 | + TdDataTableSortingOrder, |
|---|
| 8 | + TdPagingBarComponent |
|---|
| 9 | +} from '@covalent/core'; |
|---|
| 4 | 10 | import { IPageChangeEvent } from '@covalent/core'; |
|---|
| 5 | | -import { Component, AfterViewInit } from '@angular/core'; |
|---|
| 11 | +import { Component, ViewChild, AfterViewInit } from '@angular/core'; |
|---|
| 6 | 12 | import { TdMediaService } from '@covalent/core'; |
|---|
| 7 | 13 | import { PacksService } from './resources/packs'; |
|---|
| 8 | 14 | import { PackFormComponent } from './forms/pack.form.component'; |
|---|
| .. | .. |
|---|
| 49 | 55 | }) |
|---|
| 50 | 56 | export class PackListComponent implements AfterViewInit { |
|---|
| 51 | 57 | data: any[] = []; |
|---|
| 58 | + |
|---|
| 59 | + @ViewChild('pagingBar') pagingBar : TdPagingBarComponent ; |
|---|
| 60 | + |
|---|
| 52 | 61 | columns: ITdDataTableColumn[] = [ |
|---|
| 53 | 62 | { name: 'code', label: 'Code', tooltip: 'License pack code' }, |
|---|
| 54 | 63 | { name: 'application_name', label: 'App name' }, |
|---|
| .. | .. |
|---|
| 133 | 142 | this.sortBy = sortEvent.name === 'used_licenses' ? 'num_available' : sortEvent.name; |
|---|
| 134 | 143 | this.sortOrder = sortEvent.order; |
|---|
| 135 | 144 | this.filter(); |
|---|
| 145 | + console.log(this.pagingBar); |
|---|
| 136 | 146 | } |
|---|
| 137 | 147 | |
|---|
| 138 | 148 | search(searchTerm: string): void { |
|---|