Possible to use Table Widget in getFormSchema method ?

Hello, i am using tabs in formSchema, i want make table view on inside tabs, how it's possible ? i have table widget named "ListCorporationBranches"
10 Replies
toeknee
toeknee2y ago
You can't use a FilamentTable Inside it. I would suggest you build a view field and render form a livewire component if you need tables, or use a view field with a custom table view rendering the data.
Vulture
VultureOP2y ago
I don't really want to use another custom table library, how do I use FilamentTable in livewire? im newbie on filament
Vulture
VultureOP2y ago
Can i use FilamentTable inside Field ?
toeknee
toeknee2y ago
You will need to build a Livewire component that implements the table library and render that with View
Vulture
VultureOP2y ago
Thanks i follow this document https://filamentphp.com/docs/2.x/tables/getting-started for component, there is a last point that I do not understand, how will I use this component in my resource page ?
Filament
Getting started - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
Vulture
VultureOP2y ago
im using custom Field like this, how do i integrate the component
toeknee
toeknee2y ago
Don't use a custom field, and render the Blade for the Livewire component. So: https://filamentphp.com/docs/2.x/forms/fields#view so:
use Filament\Forms\Components\ViewField;

ViewField::make('TheDataOrField')->view('my.livewire.component.view.file')
use Filament\Forms\Components\ViewField;

ViewField::make('TheDataOrField')->view('my.livewire.component.view.file')
Filament
Fields - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
Vulture
VultureOP2y ago
Thank you very much @toeknee_iom for your help, I did as you said ✅
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
toeknee
toeknee2y ago
Please open a new #❓┊help with details on what you mena.
Want results from more Discord servers?
Add your server