Tab not initialize
public function getTabsDetail() : Tabs
{
return Tabs::make('Tabs')
->tabs([
Tab::make('Notifications')
->icon('heroicon-m-bell')
->schema([
LivewireComponent::make(FurnitureDataTable::class, ['houseId' => $this->model->id])
]),
]);
}
public function render()
{
return view('livewire.house.house-view', [
'tabDetail' => $this->getTabsDetail(),
]);
}
and this is code in my blade
{{ $tabDetail }}
but i got error
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
please helpSolution:Jump to solution
sorry, i just figured out that i have to declared the
use InteractsWithForms;
use InteractsWithInfolists;
when using Filament\Infolists\Components...3 Replies
You can't just use Form components outside of a form.
If you are using a livewire component with a form, you should follow this section
https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form
Solution
sorry, i just figured out that i have to declared the
use InteractsWithForms;
use InteractsWithInfolists;
when using Filament\Infolists\Components
thanks for the feedback.. it helps a lot.. π