Using Table within a custom widget
I have generated a basic widget and would like to use the Table system to output a table, but I can't work out what I need to do! Where should I look?
3 Replies
I have added the HasTable contract and InteractsWithTable concern, but then it complains about some other properties and methods, which are found in HasForms and InteractsWithForms classes. Then it complains about
must have a [query()].
and /vendor/filament/tables/src/Table/Concerns/HasQuery.php (line 76)
widgets are just livewire component, follow the instructions at https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
Thanks. I have a table showing a eloquent model-based data. I just need an array output as the rows/data.