src/core/domain/interfaces/page-meta.interface.ts
Structure of page metadata
Properties |
hasNext |
hasNext:
|
Type : boolean
|
Flag that indicates presence of the next page |
hasPrev |
hasPrev:
|
Type : boolean
|
Flag that indicates presence of the previous page |
order |
order:
|
Type : Order
|
Order of the elements on the page |
pagenum |
pagenum:
|
Type : number
|
Number of the page |
pagesize |
pagesize:
|
Type : number
|
Number of elements on the page |
total |
total:
|
Type : number
|
Total search results |
import { Order } from "../enums/page-order.enum";
/**
* Structure of page metadata
*/
export interface PageMeta {
/**
* Total search results
*/
total: number;
/**
* Number of the page
*/
pagenum: number;
/**
* Order of the elements on the page
*/
order: Order;
/**
* Flag that indicates presence of the next page
*/
hasNext: boolean;
/**
* Flag that indicates presence of the previous page
*/
hasPrev: boolean;
/**
* Number of elements on the page
*/
pagesize: number;
}