From 603a7d3823b2e74fd26e77261f9a87af39fd9a3d Mon Sep 17 00:00:00 2001 From: Ibrahim Azez Date: Tue, 27 Feb 2024 14:56:19 +0300 Subject: [PATCH] feat: expose pagination api --- .../lib/components/pager/pager.component.ts | 9 +++++---- .../src/lib/components/pager/types.ts | 1 + .../src/lib/ng2-smart-table.component.html | 2 +- .../src/lib/ng2-smart-table.component.ts | 19 +++++++++++-------- 4 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 projects/ng2-smart-table/src/lib/components/pager/types.ts diff --git a/projects/ng2-smart-table/src/lib/components/pager/pager.component.ts b/projects/ng2-smart-table/src/lib/components/pager/pager.component.ts index 36ce0e286..23e12564f 100644 --- a/projects/ng2-smart-table/src/lib/components/pager/pager.component.ts +++ b/projects/ng2-smart-table/src/lib/components/pager/pager.component.ts @@ -2,6 +2,7 @@ import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges } from import { Subscription } from 'rxjs'; import { DataSource } from '../../lib/data-source/data-source'; +import {ChangePageResult} from "./types"; @Component({ selector: 'ng2-smart-table-pager', @@ -39,7 +40,7 @@ import { DataSource } from '../../lib/data-source/data-source'; Next - +
  • - +