F
Filamentβ€’3mo ago
Fatihah

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 help
Solution:
sorry, i just figured out that i have to declared the use InteractsWithForms; use InteractsWithInfolists; when using Filament\Infolists\Components...
Jump to solution
3 Replies
Dennis Koch
Dennis Kochβ€’3mo ago
You can't just use Form components outside of a form.
Solution
Fatihah
Fatihahβ€’3mo ago
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.. πŸ‘
Want results from more Discord servers?
Add your server