T - the type of the data table recordspublic class AdvancedPaginationPlugin<T> extends Object implements DataTablePlugin<T>
AdvancedPagination component to the data table and fires TablePageChangeEvent when ever the page is changed| Constructor and Description |
|---|
AdvancedPaginationPlugin()
Creates and instance with default page size of 10
|
AdvancedPaginationPlugin(int pageSize)
Creates and instance with a custom page size
|
| Modifier and Type | Method and Description |
|---|---|
AdvancedPagination |
getPagination() |
void |
onAfterAddTable(DataTable<T> dataTable)
This method will be called right after adding the table element to its root element
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUtilityElements, handleEvent, init, onAfterAddHeaders, onAllRowsAdded, onBeforeAddHeaders, onBeforeAddRow, onBeforeAddTable, onBodyAdded, onHeaderAdded, onRowAdded, requiresUtilityColumnpublic AdvancedPaginationPlugin()
public AdvancedPaginationPlugin(int pageSize)
pageSize - int, Page sizepublic void onAfterAddTable(DataTable<T> dataTable)
onAfterAddTable in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.public AdvancedPagination getPagination()
AdvancedPagination wrapped in this pluginCopyright © 2019–2022 Dominokit. All rights reserved.