Use Livewire pagination inside a ViewField

I have some additional data displayed inside a form that I want to paginate over.

Is it possible to use Livewire's ajax pagination with a Filament component?

class ExampleField extends Forms\Components\ViewField
{
    use WithPagination; 

    public static function make(string $name): static
    {
        $static = parent::make($name);

        $static->viewData([
            'example' => Models\Example::paginate(5)
        ]);

        return $static;
    }
}
Was this page helpful?