uib-pagination.config.ts 474B

123456789101112131415
  1. import { Injectable } from '@angular/core';
  2. import { NgbPaginationConfig } from '@ng-bootstrap/ng-bootstrap';
  3. import { ITEMS_PER_PAGE } from 'app/shared';
  4. @Injectable({ providedIn: 'root' })
  5. export class PaginationConfig {
  6. // tslint:disable-next-line: no-unused-variable
  7. constructor(private config: NgbPaginationConfig) {
  8. config.boundaryLinks = true;
  9. config.maxSize = 5;
  10. config.pageSize = ITEMS_PER_PAGE;
  11. config.size = 'sm';
  12. }
  13. }