Passing and Calling an Action from a Parent Livewire Component to a Child Component
I have a Livewire parent component with a delete action defined as
@endforeach {{ ($this->deleteAction) }} <livewire:child-component /> <x-filament-actions::modals /> </div> I tried using {{ $parent->deleteAction }} from child component blade.. but not working. is there any way i can access from child component blade view.
$this->deleteAction
. I want to pass this action to a child component and call it from the child component's Blade file. Is it possible
<div>
@foreach ($posts as $post)
<h2>{{ $post->title }}</h2>
@endforeach {{ ($this->deleteAction) }} <livewire:child-component /> <x-filament-actions::modals /> </div> I tried using {{ $parent->deleteAction }} from child component blade.. but not working. is there any way i can access from child component blade view.
0 Replies