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.
The Table offers additional configuration to show/hide the Tools/Toolbar sections:
Contains:
Contains:
The Default Behaviour, Tools Are Enabled. But will only be rendered if there are available/enabled elements. If the Toolbar is enabled, this takes into account any Toolbar elements that are present.
public function configure(): void
{
$this->setToolsEnabled();
}
Disables the Tools section, this includes the Toolbar, and Sort/Filter pills
public function configure(): void
{
$this->setToolsDisabled();
}
The Default Behaviour, ToolBar is Enabled. But will only be rendered if there are available/enabled elements
public function configure(): void
{
$this->setToolBarEnabled();
}
Disables the Toolbar, which contains the Reorder, Filters, Search, Column Select, Pagination buttons/options. Does not impact the Filter/Sort pills (if enabled)
public function configure(): void
{
$this->setToolBarDisabled();
}
Allows setting of attributes for the parent element in the tools blade
By default, this replaces the default classes on the tools blade, if you would like to keep them, set the default-colors/default-styling flags to true as appropriate
public function configure(): void
{
$this->setToolsAttributes(['class' => ' bg-green-500', 'default-colors' => false, 'default-styling' => true]);
}
Allows setting of attributes for the parent element in the toolbar blade.
By default, this replaces the default classes on the toolbar blade, if you would like to keep them, set the default-colors/default-styling flags to true as appropriate
public function configure(): void
{
$this->setToolBarAttributes(['class' => ' bg-red-500', 'default-colors' => false, 'default-styling' => true]);
}
How can I help you explore Laravel packages today?