Class: ListConfig

Description: The ListConfig interface defines the configuration for a list of items. It specifies properties like the page number, items per page, sort order, and direction.

Code:

export interface ListConfig {
  page: number;
  perPage: number;
  orderBy: string;
  order: string;
}

Properties


Property: page

Description: The current page number.

Type: number


Property: perPage

Description: The number of items to display per page.

Type: number


Property: orderBy

Description: The field by which the list should be ordered.

Type: string


Property: order

Description: The direction of the sort order, either "asc" (ascending) or "desc" (descending).

Type: string