archilex/filament-stacked-image-column
Composer 安装命令:
composer require archilex/filament-stacked-image-column
包简介
Display multiple images as a stack in your Filament tables
README 文档
README
Stacked Image Column allows you to display multiple images as a stack in your Filament tables.
Screenshots
Installation
You can install the package via composer:
composer require archilex/filament-stacked-image-column
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-stacked-image-column-views"
Usage
Normally you will use Stacked Image Column to show a relationship of images. The name of the relationship comes first, followed by a period, followed by the name of the column to display:
use Archilex\StackedImageColumn\Columns\StackedImageColumn; return $table ->columns([ StackedImageColumn::make('orderItems.image'), ]);
Using a separator
Instead of using a relationship, you may use a separated string by passing the separator into separator():
StackedImageColumn::make('product_images') ->separator(',')
Customizing the images
As StackedImageColumn extends Filament's ImageColumn, you have access to most of the same methods:
StackedImageColumn::make('images') ->circular() ->width(20)
Setting a limit
You may set a limit to the number of images you want to display by passing limit():
StackedImageColumn::make('orderItems.image') ->circular() ->limit(3)
Showing the remaining images count
When you set a limit you may also display the count of remaining images by passing showRemaining().
StackedImageColumn::make('orderItems.image') ->circular() ->limit(3) ->showRemaining()
By default, showRemaining() will display the count of remaining images as a number stacked on the other images. If you prefer to show the count as a number after the images you may use showRemainingAfterStack(). You may also set the text size by using remainingTextSize('xs');
Customizing the ring width
The default ring width is ring-3 but you may customize the ring width to be either 0, 1, 2, or 4 which correspond to tailwinds ring-widths: ring-0, ring-1, ring-2, and ring-4 respectively.
StackedImageColumn::make('users.avatar') ->circular() ->ring(3)
Customizing the overlap
The default overlap is -space-x-1 but you may customize the overlap to be either 0, 1, 2, 3, or 4 which correspond to tailwinds space-x options: space-x-0, -space-x-1, -space-x-2, -space-x-3, and -space-x-4 respectively.
StackedImageColumn::make('users.avatar') ->circular() ->overlap(3)
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
Other Filament Plugins
Check out my other Filament Plugins:
- Filter Sets: Save your filters, search query, column order, and column search queries into easily accessible filter sets
- Toggle Icon Column: Display a toggleable icon in your Filament table.
License
The MIT License (MIT). Please see License File for more information.
archilex/filament-stacked-image-column 适用场景与选型建议
archilex/filament-stacked-image-column 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.29k 次下载、GitHub Stars 达 43, 最近一次更新时间为 2023 年 05 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「images」 「laravel」 「admin panel」 「tables」 「column」 「archilex」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 archilex/filament-stacked-image-column 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 archilex/filament-stacked-image-column 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 archilex/filament-stacked-image-column 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova field for distribute your images as array of object.
Pexels API Client for www.pexels.com
2lenet/EasyAdminPlusBundle
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
Analysis module for finding problematical shop data.
Convert and serve jpeg/png to webp with PHP (if at all possible)
统计信息
- 总下载量: 8.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 43
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-30

