Skip to content

Commit

Permalink
Merge pull request #20 from Tschucki/fix-type-definitions-for-width
Browse files Browse the repository at this point in the history
Update type definitions for RatingColumn::$width
  • Loading branch information
oyepez003 authored Sep 5, 2024
2 parents ec9b0e4 + cc8c6c5 commit 62c4845
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Tables/Components/RatingColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 62c4845

Please sign in to comment.