Interface Pagination

All Superinterfaces:
Component, Component.BelongToFrame, PaginationComponent
All Known Implementing Classes:
PaginationImpl

@StudioComponent(caption="Pagination", category="Components", xmlElement="pagination", icon="io/jmix/ui/icon/component/pagination.svg", canvasBehaviour=BOX, documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/pagination.html", unsupportedProperties={"responsive","enable"}) public interface Pagination extends PaginationComponent
Component that makes a data binding to load data by pages. It contains page numbers that enable the user to select a specific page.
  • Field Details

  • Method Details

    • getMaxVisiblePages

      int getMaxVisiblePages()
      Returns:
      maximum number of visible pages.
    • setMaxVisiblePages

      @StudioProperty(defaultValue="5") void setMaxVisiblePages(int maxVisiblePages)
      Sets the maximum number of visible pages. The component can have a lot of pages, but users will see a number of pages at once that corresponds to the maximum number of visible pages. For instance, the component has 10 pages and the maximum number of visible pages is 3, so users will see only 3 pages at once. The default value is 5.
    • addPageChangeListener

      Subscription addPageChangeListener(Consumer<Pagination.PageChangeEvent> listener)
      Adds page change listener. It will be invoked when the user selects another page or clicks on navigation buttons (next, previous, etc).
      Parameters:
      listener - listener to add
      Returns:
      a registration object for removing an event listener