mhdrefdi-ptr/filament-freeze-action-table
Composer 安装命令:
composer require mhdrefdi-ptr/filament-freeze-action-table
包简介
A Filament package that keeps table action columns fixed (frozen) during horizontal scrolling, ensuring actions remain visible and easily accessible.
README 文档
README
Keep Filament table action columns sticky on the right during horizontal scrolling.
Supports Filament ^4.0.
Installation
composer require mhdrefdi-ptr/filament-freeze-action-table php artisan filament:assets
Quick Start (Recommended)
Register the plugin in your panel provider:
use Filament\Panel; use Mhdrefdi\FilamentFreezeActionTable\FilamentFreezeActionTablePlugin; public function panel(Panel $panel): Panel { return $panel ->plugin( FilamentFreezeActionTablePlugin::make() ->enabledByDefault(true) ); }
Plugin Configuration
Available fluent methods:
enabledByDefault(bool $condition = true)zIndexBody(int $value)zIndexHeader(int $value)shadowEnabled(bool $condition = true)shadowLight(string $value)shadowDark(string $value)darkHoverMixPercent(int $value)
Example:
->plugin( FilamentFreezeActionTablePlugin::make() ->enabledByDefault(true) ->zIndexBody(15) ->zIndexHeader(16) ->shadowEnabled(true) ->darkHoverMixPercent(5) )
Multi-panel behavior
Table::configureUsing()is guarded per panel ID (no duplicate registrations).- Defaults are applied only when the current panel matches that plugin's panel.
Per-table Override
use Filament\Tables\Table; public static function table(Table $table): Table { return $table ->freezeActionColumn(false); // disable for this table }
Enable explicitly:
return $table->freezeActionColumn(true);
Optional Config File
If you prefer config-file driven setup:
php artisan vendor:publish --tag=filament-freeze-action-table-config
Available keys in config/filament-freeze-action-table.php:
enabled_by_defaultz_index_bodyz_index_headershadow_enabledshadow_lightshadow_darkdark_hover_mix_percent
How It Works
- Frontend behavior is loaded via Filament assets (
FilamentAsset::register), not inline render hooks. - Action column is detected from action triggers in the row.
- Shadow appears only when horizontal overflow exists.
Testing
Browser spec:
tests/browser/freeze-action-column.spec.ts
Run:
npx playwright install chromium
npx playwright test packages/mhdrefdi-ptr/filament-freeze-action-table/tests/browser/freeze-action-column.spec.ts
Optional env URLs:
FFT_TEST_URL(default:http://127.0.0.1:8000/admin/users)FFT_TEST_URL_WIDE(default:http://127.0.0.1:8000/admin/users-wide)
Changelog
See CHANGELOG.md.
mhdrefdi-ptr/filament-freeze-action-table 适用场景与选型建议
mhdrefdi-ptr/filament-freeze-action-table 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mhdrefdi-ptr/filament-freeze-action-table 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mhdrefdi-ptr/filament-freeze-action-table 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-18