how to get result function custom field?
I make custom field how to fetch data i want make table with pagination custom.
11 Replies
$wire undifiend
i dont know how to fetchData -_- or i make livewire component?It's not a Livewire component. Just a Blade component. You should be able to run that function via
$getOutletPage()
Filament/FIeld is not livewire component?
Solution if wanna make pagination table make livewire component and in field include livewire component?
No. If every field was a Livewire component the performance would be really bad.
You can include Livewire components in your form via
Forms\Components\Livewire
"field"i can make like this?
how to connected state field into custom livewire component?
input using
wire:model
if livewire component? how entangle it?
owh okay, new knowlage for me. Page = Livewire Component, Field & Infolist & Coloums = Blade Component.Sorry, I'm not sure about that one.
$getOutletPage() can call in initial how to call again?
<button @click=$getOutletPage(currentPage + 1) />
It's not a Livewire component. You can't use Livewire features.
All the methods would need to be on the page. For example via a trait.
i see, i need include livewire component in field.
if want make pagination filament/field via livewire component.
You can either create a normal field, that needs a trait on the page that provides the methods for it.
Or you create a LW component that paginates by reloading the parent component or page.
thanks, maybe make LW component make easy, and can reuse again out panel filament.