With the latest refactoring, the Document List and Pagination components were decoupled. However, it is no longer possible to use Pagination with multiple instances of the Document List or DataTable components, without writing huge amount of code.
Simplify integration process for the Paginator with Document List and other components:
- provide a "PaginatedComponent" interface that Document List (and other components) can implement
- Paginator should be able to receive a reference to the Component that is able to handle pagination on its own, and implements PaginatedComponent interface
- If a custom component is assigned, the paginator should redirect calls to the target component
- It should be possible to wire pagination with DataTable and Document List out of the box (should work with Process/Task lists as well given they extend the DataTable component)