How do you call methods with a Custom Column?
I have been able to make a custom column, but I have been trying to figure out how to actually call methods.
If I try to use it like a volt component, it is not able to to see volt functions Clicking here will give "toggleLiveStatus undefined"
Methods defined in the custom class itself will also don't register.
I really am just trying to make a callback for clicking on the columns button.
5 Replies
Your ListPage is the Livewire component, so I think you should add the methods to this page
Columns aren't Livewire components. That's why you can't call methods on them.
To clarify, columns aren't livewire components, but they can still use
wire:
attributes? Looks like most of the built-in filament columns do that.Solution
Yes. But
wire:
will refer to the component which is the ListPageGot it, thank you.