From cc8c6c57aff903740280f08f13474aa2ce7d11be Mon Sep 17 00:00:00 2001 From: Marcel Wagner Date: Mon, 22 Jul 2024 19:56:21 +0200 Subject: [PATCH] Update type definitions for RatingColumn::$width --- src/Tables/Components/RatingColumn.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Tables/Components/RatingColumn.php b/src/Tables/Components/RatingColumn.php index b9b0ef4..03f918c 100644 --- a/src/Tables/Components/RatingColumn.php +++ b/src/Tables/Components/RatingColumn.php @@ -17,7 +17,7 @@ class RatingColumn extends Column protected string | Closure $selectedIcon = "heroicon-s-star"; protected int | Closure $min = 1; protected int | Closure $max = 5; - protected int | Closure $width = 6; + protected int | string | Closure | null $width = 6; protected int | Closure $height = 6; protected string $cursor = 'default'; protected string $clearIconTooltip = ""; @@ -102,13 +102,6 @@ public function getRateTooltip(int $index): mixed return $this->tooltips[$index - 1] ?? ''; } - public function width(int | Closure $width): self - { - $this->width = $width; - - return $this; - } - public function height(int | Closure $height): self { $this->height = $height;