1. Domino UI
  2. Data table
  3. Table pagination
Top Simple Scrolling Advanced Docs

Table pagination

A plugin for adding simple pagination functionality to a DataTable.

T

The type of data in the DataTable.

A plugin for adding scrolling pagination functionality to a DataTable.

T

The type of data in the DataTable.

A plugin for adding advanced pagination functionality to a DataTable.

T

The type of data in the DataTable.

Examples

Simple pagination Use simple pager to fire pagination events for the data store.

Scrolling pagination Scrolling pagination plugin allows navigation through a set of page at a time in datatable.

Advanced pagination Advanced pagination plugin allows navigation through pages from a dropdown list.

API Docs: SimplePaginationPlugin

Constructors

public void SimplePaginationPlugin()
Initializes the plugin with a default page size of 10.
public void SimplePaginationPlugin(int pageSize)
Initializes the plugin with a specified page size.

pageSize

The number of items per page.

Public methods

public void onAfterAddTable(DataTable<T> dataTable)
Adds the pagination component to the DataTable and registers a change listener to handle page change events.

dataTable

The DataTable instance to which this plugin is applied.

public SimplePagination getSimplePagination()
Gets the SimplePagination instance used by this plugin.

Returns:

The SimplePagination instance.

API Docs: ScrollingPaginationPlugin

Constructors

public void ScrollingPaginationPlugin()
Initializes the plugin with a default page size of 10 and a default window size of 10.
public void ScrollingPaginationPlugin(int pageSize)
Initializes the plugin with a specified page size and a default window size of 10.

pageSize

The number of items per page.

public void ScrollingPaginationPlugin(int pageSize, int windowSize)
Initializes the plugin with a specified page size and window size.

pageSize

The number of items per page.

windowSize

The number of pages to display in the pagination window.

Public methods

public void onAfterAddTable(DataTable<T> dataTable)
Adds the scrolling pagination component to the DataTable and registers a change listener to handle page change events.

dataTable

The DataTable instance to which this plugin is applied.

public ScrollingPagination getPagination()
Gets the ScrollingPagination instance used by this plugin.

Returns:

The ScrollingPagination instance.

API Docs: AdvancedPaginationPlugin

Constructors

public void AdvancedPaginationPlugin()
Initializes the plugin with a default page size of 10.
public void AdvancedPaginationPlugin(int pageSize)
Initializes the plugin with a specified page size.

pageSize

The number of items per page.

Public methods

public void onAfterAddTable(DataTable<T> dataTable)
Adds the advanced pagination component to the DataTable and registers a change listener to handle page change events.

dataTable

The DataTable instance to which this plugin is applied.

public AdvancedPagination getPagination()
Gets the AdvancedPagination instance used by this plugin.

Returns:

The AdvancedPagination instance.

We are a group of passionate people who love what we do

Donate & Support Us