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
@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.
2 replies
Hidden attribute not working as expected for Sections in Filament Form
Hello, I'm currently using the Filament package for a project and I've encountered an issue. I am trying to hide a Forms\Components\Section based on the value of a Forms\Components\Select input field using the hidden method. It appears that the hidden method works correctly when used with Forms\Components\DatePicker, but it does not behave as expected when applied to Forms\Components\Section. Is this a known issue, or am I perhaps using it incorrectly? Here is a snippet of the code I'm working with:
In this case, the Contract section should be hidden unless the employee_type_id is 3, but it seems to always be hidden, regardless of the employee_type_id value. Any assistance would be greatly appreciated. Thank you.
16 replies