EPagination Pagination
Examples
Page size and page jump
Pagination
Properties
buttonBackgroundboolShow pager button backgrounds.
truecontentaliasContent slot; declare QML child objects directly inside the component.
Alias: customContent.datacurrentPageintCurrent page number, starting at 1.
1enabledboolAllow interaction; false disables the control.
trueexplicitPageCountintExplicit page count; otherwise derived from total and pageSize.
0heightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighthideOnSinglePageboolHide pagination when there is only one page.
falselayoutstringVisible pagination controls and their order.
Comma-separated:
prev, pager, next
sizes, total, jumper
->: align following items to the right
"total, prev, pager, next"nextTextstringCustom text for next-page or previous-page buttons.
""pageSizeintData items per page.
10pageSizesvarAvailable page-size choices.
[10, 20, 50, 100]pagerCountintNumber of pager buttons.
7prevTextstringCustom text for next-page or previous-page buttons.
""showTotalboolShow pagination total count.
truesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaulttotalintTotal number of data items.
0visibleboolWhether the component is visible.
!hideOnSinglePage || pageCount > 1widthrealComponent size in pixels; may be bound to its parent layout.
implicitWidtheffectivePageSizeintRead onlyEffective page size, at least 1.
Computed at runtimelayoutItemsvarRead onlyPagination layout items and groups on either side of ->.
Computed at runtimeleftItemsvarRead onlyPagination layout items and groups on either side of ->.
Computed at runtimepageCountintRead onlyResolved total page count.
Computed at runtimepagesvarRead onlyCurrent pager numbers and ellipsis entries.
Computed at runtimerightItemsvarRead onlyPagination layout items and groups on either side of ->.
Computed at runtimesplitIndexintRead onlyIndex of -> in pagination layout.
Computed at runtimelocalizedTextsvarRead onlyLocalized texts for the current language; updated when the language changes.
ELocale.textsSignals
nextClicked(int page)Emitted when the next-page button is clicked; page is the target page number.
currentChange(int page)Emitted when the current page changes; page is the new one-based page number.
sizeChange(int pageSize)Emitted when the page size changes; pageSize is the new size.
previousClicked(int page)Emitted when the previous-page button is clicked; page is the target page number.
changed(int page, int pageSize)Emitted when the page or page size changes; page is the current page and pageSize is the page size.
Methods
normalizePage()Clamp the current page to the valid range, for example after the page count decreases.
next()Move to the next item or step.
previous()Move to the previous item or step.
setPage(page)Switch to the one-based page number specified by page.
setPageSize(value)Set the page size and update the valid page range.