From cf068b6a455ea218b3054fb3fdebed2d3176db7a Mon Sep 17 00:00:00 2001 From: al-saloul Date: Wed, 17 Dec 2025 12:35:39 +0300 Subject: [PATCH] feat: introduce ImageGalleryColumn for Filament tables to display image galleries with various customization options. --- src/Tables/Columns/ImageGalleryColumn.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Tables/Columns/ImageGalleryColumn.php b/src/Tables/Columns/ImageGalleryColumn.php index c99eb13..9f69a73 100644 --- a/src/Tables/Columns/ImageGalleryColumn.php +++ b/src/Tables/Columns/ImageGalleryColumn.php @@ -103,6 +103,26 @@ class ImageGalleryColumn extends Column return $this->evaluate($this->stackedOverlap); } + /** + * Set the overlap value for stacked images. + * This is an alias for Filament compatibility. + * You can also use stacked(3) directly. + */ + public function overlap(int | Closure $overlap): static + { + $this->stackedOverlap = $overlap; + + return $this; + } + + /** + * Alias for getStackedOverlap() to match Filament's API + */ + public function getOverlap(): int + { + return $this->getStackedOverlap(); + } + public function square(bool | Closure $condition = true): static { $this->isSquare = $condition;