Accessing (parent?) data using <x-filament::button
Hi,
I am trying to use <x-filament::button within a blade file I've created.
I have a state property which is an array. Below I have two buttons:
The standard syntax button works perfectly and executes calendarField:reset and passes the state to it.
However, <x-filament::button does not and gives the error
ReferenceError: state is not defined
I've tried using $parent.state to no avail. Any ideas?
Thanks!2 Replies