You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
PaginationProps:
|
|
allOf:
|
|
- type: object
|
|
description: Optional properties that may or may not be present (except for `page`, which is always present, and is only here as a hack to pass validation)
|
|
properties:
|
|
page:
|
|
type: number
|
|
qs:
|
|
type: string
|
|
required:
|
|
- cid
|
|
Pagination:
|
|
type: object
|
|
properties:
|
|
pagination:
|
|
allOf:
|
|
- $ref: '#/PaginationProps'
|
|
- type: object
|
|
properties:
|
|
prev:
|
|
type: object
|
|
properties:
|
|
page:
|
|
type: number
|
|
active:
|
|
type: boolean
|
|
next:
|
|
type: object
|
|
properties:
|
|
page:
|
|
type: number
|
|
active:
|
|
type: boolean
|
|
first:
|
|
type: object
|
|
properties:
|
|
page:
|
|
type: number
|
|
active:
|
|
type: boolean
|
|
last:
|
|
type: object
|
|
properties:
|
|
page:
|
|
type: number
|
|
active:
|
|
type: boolean
|
|
rel:
|
|
type: array
|
|
description: A collection of objects used to build the link tags pointing to adjacent pages, if any.
|
|
items:
|
|
type: object
|
|
properties:
|
|
rel:
|
|
type: string
|
|
enum: [prev, next]
|
|
href:
|
|
type: string
|
|
description: A query string that points to the previous or next page
|
|
pages:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
page:
|
|
type: number
|
|
description: The current page
|
|
active:
|
|
type: boolean
|
|
description: If the page noted in this array is the current page
|
|
qs:
|
|
type: string
|
|
description: A query string that points to the page noted in this array
|
|
currentPage:
|
|
type: number
|
|
pageCount:
|
|
type: number |