rappasoft/laravel-livewire-tables
Laravel Livewire Tables provides dynamic, feature-rich data tables for Laravel Livewire with sorting, searching, filtering, pagination, bulk actions, and Bootstrap/Tailwind support. Build reusable table components backed by Eloquent queries.
View Component columns let you specify a component name and attributes and provide attributes to the View Component. This will render the View Component in it's entirety.
ViewComponentColumn::make('E-mail', 'email')
->component('email')
->attributes(fn ($value, $row, Column $column) => [
'id' => $row->id,
'email' => $value,
]),
Should you wish to render the Custom Component in it's entirety, then you may use the customComponent method. Otherwise it will pass in the values directly to the blade, rather than executing your View Component.
ViewComponentColumn::make('Weight', 'grams')
->customComponent(\App\View\Components\TestWeight::class)
->attributes(fn ($value, $row, Column $column) => [
'weight' => new Weight($value),
]),
Please also see the following for other available methods:
How can I help you explore Laravel packages today?