1 import { LazyLoadEvent, SortMeta } from 'primeng/primeng'
3 import { RestPagination } from './rest-pagination'
5 export abstract class RestTable {
6 abstract totalRecords: number
7 abstract rowsPerPage: number
8 abstract sort: SortMeta
9 abstract pagination: RestPagination
11 protected abstract loadData (): void
13 loadLazy (event: LazyLoadEvent) {
15 order: event.sortOrder,
16 field: event.sortField
21 count: this.rowsPerPage