diff options
Diffstat (limited to 'src/TableComponent.php')
| -rw-r--r-- | src/TableComponent.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/TableComponent.php b/src/TableComponent.php index 516c8da..e36029e 100644 --- a/src/TableComponent.php +++ b/src/TableComponent.php @@ -17,6 +17,7 @@ use Lightscale\LaralightTables\Toolbar\Filter; use Livewire\Attributes\Url; use Livewire\Component; use Livewire\WithPagination; +use SortDirection; /** * @template TModel of Model @@ -64,8 +65,11 @@ abstract class TableComponent extends Component #[Url] public ?string $order = null; + /** + * @var SortDirection|'asc'|'desc'|null + */ #[Url] - public ?string $orderDirection = null; + public SortDirection|string|null $orderDirection = null; public function mount(): void { |
