Livewire Methods on custom fields
I want to call a livewire method on my custom field via $wire.
$wire.call('doAThing', withAValue)
As far as I can tell, to achieve this I need to implement a trait that can be used by the page and add the doAThing
function to that, passing the fieldName as a in order to be able to retrieve the field... Is that correct?
The primary use case is I want to implement a dynamic search on a custom field that doesn't follow the Select logic.2 Replies
I think
$wire.doAThing('withAValue')
public function doAThing($withAValue) {}
in your Pages (pages are livewire components)Thanks, but to confirm there’s no supported way of achieving this on a field-level without the need of specifying the function on the page?