T - the type of the data table recordspublic class SimplePaginationPlugin<T> extends Object implements DataTablePlugin<T>
SimplePagination component to the data table and fires TablePageChangeEvent when ever the page is changed| Constructor and Description |
|---|
SimplePaginationPlugin()
Creates and instance with default page size of 10
|
SimplePaginationPlugin(int pageSize)
Creates and instance with a custom page size
|
| Modifier and Type | Method and Description |
|---|---|
SimplePagination |
getSimplePagination() |
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 SimplePaginationPlugin()
public SimplePaginationPlugin(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 SimplePagination getSimplePagination()
SimplePagination wrapped in this pluginCopyright © 2019–2022 Dominokit. All rights reserved.