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.
When running complex filters or searches, or displaying larger number of records, you can make use of the built-in Loading Placeholder, this is disabled by default.
You may pass a boolean to this, which will either enable (true) or disable (false) the loading placeholder
public function configure(): void
{
$this->setLoadingPlaceholderStatus(true);
}
Use this method to enable the loading placeholder:
public function configure(): void
{
$this->setLoadingPlaceholderEnabled();
}
Use this method to disable the loading placeholder:
public function configure(): void
{
$this->setLoadingPlaceholderDisabled();
}
You may use this method to set custom text for the placeholder:
public function configure(): void
{
$this->setLoadingPlaceholderContent('Text To Display');
}
This is replaced by setLoadingPlaceHolderRowAttributes, but remains functional.
This method allows you to customise the attributes for the <tr> element used as a Placeholder when the table is loading. Similar to other setAttribute methods, this accepts a range of attributes, and a boolean "default", which will enable/disable the default attributes.
public function configure(): void
{
$this->setLoadingPlaceHolderWrapperAttributes([
'class' => 'text-bold',
'default' => false,
]);
}
Replaces setLoadingPlaceHolderWrapperAttributes This method allows you to customise the attributes for the <tr> element used as a Placeholder when the table is loading. Similar to other setAttribute methods, this accepts a range of attributes, and a boolean "default", which will enable/disable the default attributes.
public function configure(): void
{
$this->setLoadingPlaceHolderRowAttributes([
'class' => 'text-bold',
'default' => false,
]);
}
This method allows you to customise the attributes for the <div> element that is used solely for the PlaceholderIcon. Similar to other setAttribute methods, this accepts a range of attributes, and a boolean "default", which will enable/disable the default attributes.
public function configure(): void
{
$this->setLoadingPlaceHolderIconAttributes([
'class' => 'lds-hourglass',
'default' => false,
]);
}
How can I help you explore Laravel packages today?