Pagination with options

I have a view
<div>
{{ $this->productInfolist }}

<x-filament::pagination :paginator="$this->data['budgetPagination']" style="margin-top: 15px;"
:page-options="[1, 5, 10, 20, 50, 'all']" :current-page-option-property="$this->perPage" />
{{-- /> --}}
</div>
<div>
{{ $this->productInfolist }}

<x-filament::pagination :paginator="$this->data['budgetPagination']" style="margin-top: 15px;"
:page-options="[1, 5, 10, 20, 50, 'all']" :current-page-option-property="$this->perPage" />
{{-- /> --}}
</div>
And in my Page class, I define
public int | string $perPage = 5;
protected static string $view = 'filament.pages.report';
public int | string $perPage = 5;
protected static string $view = 'filament.pages.report';
Then I have my productInfolist function return an InfoList. So now pagination works to perPage, but when I change the options, nothing happens. Any ideas?
0 Replies
No replies yetBe the first to reply to this messageJoin