chrome:shell.skip

generated:catalog.entry.cdk-pagination.title

generated:catalog.entry.cdk-pagination.description

@xngui/components/pagination
@xngui/components/pagination

chrome:demo.section

chrome:demo.preview

1–5 of 87
demo-preview:hints.category.assistive:
TipSR
import { Component } from '@angular/core';
import { XPagination, XPaginationControls, XPaginationSize, XPaginationStatus } from '@xngui/components/pagination';
 
@Component({
selector: 'app-example',
imports: [XPagination, XPaginationControls, XPaginationSize, XPaginationStatus],
templateUrl: './pagination.component.html',
})
export class ExampleComponent {}

chrome:demo.events.title 1

  1. pageChanged
    {
      "pageIndex": 0,
      "pageSize": 5,
      "length": 87
    }

chrome:demo.api.title

x-pagination

chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
model
XPagination
—
Existing XPagination model — when set, drives paging instead of length/page models.
length
number
0
Total item count when not using model.
pageSizeOptions
readonly number[]
[10, 25, 50]
Options shown in the page-size select.
size
XSize
—
Visual size tier — falls back to XConfigService when unset.
density
XDensity
—
Spacing offsets — falls back to XConfigService when unset.
disabled
boolean
false
Prevents paging and sets `aria-disabled` on the host.
ariaLabel
string
—
Accessible name for the navigation region — falls back to the `pagination.ariaLabel` i18n key.