Open elegasoft opened 2 years ago
I like the idea with using Traits a lot, but shouldnt it be possible to use multiple tables on the same page by default without using a Trait ?
Hi all. Any update in this feature. It would really be awesome to have this implemented.
Resolves #496: Allow for independent query string pagination with multiple datatables on the same page
Function:
By using the WithMultiTablePaginator one can rely on the query string parameters to separately paginate multiple
LivewireDatatable
's which are rendered on the same page.Requirements:
Requires that the DataTableComponent
use WithMultiTablePaginator;
and declare either a$pageName
or$name
property on the DataTableComponent.How it works:
$pageName
or LivewireDatatable$name
properties.getResultsProperty()
also paginates based on the page related to$pageName
or LivewireDatatable$name
property.Tests:
-- Work In Progress --
Discussion Points:
WithCustomPaginator
?$pageName
usingstatic::class
?