F
Filament13mo ago
Naren

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 $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
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server