diff options
author | Sam Light <samlight1994@gmail.com> | 2025-04-01 22:04:40 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-04-01 22:04:40 +0100 |
commit | 21f7022ca80f0c61c18923532b8c5fadc99765db (patch) | |
tree | bd19d865e2ebe2b231a94c23af027af4a0697478 | |
parent | 99f532e8cd0e28c2ba5375366463d5aa5cbc3613 (diff) |
Load css in table component
-rw-r--r-- | src/TableComponent.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/TableComponent.php b/src/TableComponent.php index 266cdc3..c08f333 100644 --- a/src/TableComponent.php +++ b/src/TableComponent.php @@ -4,6 +4,8 @@ namespace Lightscale\LaralightTables; use Lightscale\LaralightTables\Columns\Column; +use Lightscale\LaralightAssets\Facades\Assets; + use Livewire\Component; use Livewire\WithPagination; use Livewire\Attributes\Url; @@ -46,6 +48,8 @@ abstract class TableComponent extends Component { $this->setDefaultActiveColumns(); $this->setDefaultPageSize(); + + Assets::queueStyle('laralight-tables::css/main.css'); } protected function setDefaultPageSize(): void |