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.
Set any attributes on the secondary header row element.
public function configure(): void
{
$this->setSecondaryHeaderTrAttributes(function($rows) {
return ['class' => 'bg-gray-100'];
});
}
By default, this replaces the default classes on the tr element, if you would like to keep them, set the default flag to true.
public function configure(): void
{
$this->setSecondaryHeaderTrAttributes(function($rows) {
return [
'default' => true,
'class' => 'bg-gray-100'
];
});
}
Set any attributes on the secondary header row cells.
public function configure(): void
{
$this->setSecondaryHeaderTdAttributes(function(Column $column, $rows) {
if ($column->isField('id')) {
return ['class' => 'text-red-500'];
}
});
}
By default, this replaces the default classes on the td element, if you would like to keep them, set the default flag to true.
public function configure(): void
{
$this->setSecondaryHeaderTdAttributes(function(Column $column, $rows) {
if ($column->isField('id')) {
return [
'default' => true,
'class' => 'text-red-500'
];
}
});
}
How can I help you explore Laravel packages today?