1 import { LazyLoadEvent } from 'primeng/components/common/lazyloadevent'
2 import { SortMeta } from 'primeng/components/common/sortmeta'
4 import { RestPagination } from './rest-pagination'
6 export abstract class RestTable {
7 abstract totalRecords: number
8 abstract rowsPerPage: number
9 abstract sort: SortMeta
10 abstract pagination: RestPagination
12 protected abstract loadData (): void
14 loadLazy (event: LazyLoadEvent) {
16 order: event.sortOrder,
17 field: event.sortField
22 count: this.rowsPerPage