hotsed/filament-sticky-actions
最新稳定版本:0.1
Composer 安装命令:
composer require hotsed/filament-sticky-actions
包简介
A Filament plugin to make table action columns sticky when scrolling horizontally
README 文档
README
Sticky Actions
Keep your table actions visible while scrolling horizontally. Perfect for tables with many columns.
Features
- 📌 Sticky Actions Column - Actions stay visible when scrolling horizontally
- 🎨 Theme-Aware - Automatically detects and uses your theme's colors
- 🌙 Dark Mode Support - Colors update when switching themes
- 📊 Striped Rows Support - Correctly handles alternating row colors
- 🔲 Scroll Shadow - Subtle shadow indicator when there's more content
- ⚡ Zero Configuration - Just call
->stickyActions()and it works
Compatibility
| Package Version | Filament Version |
|---|---|
| 1.x | 4.x |
Installation
composer require hotsed/filament-sticky-actions
After installing, publish the assets:
php artisan filament:assets
Usage
Enable sticky actions on any table by calling ->stickyActions():
use Filament\Tables\Table; public function table(Table $table): Table { return $table ->columns([ // your columns... ]) ->actions([ // your actions... ]) ->stickyActions(); // Enable sticky actions }
You can also conditionally enable it:
->stickyActions(condition: $shouldStick)
How It Works
- Adds a
stickyActions()macro to Filament's Table class - When enabled, adds
data-sticky-actionsattribute to the table - CSS makes the actions column sticky with
position: sticky; right: 0 - JavaScript automatically detects background colors from your theme
- Blends semi-transparent striped row colors correctly
- Shadow indicator disappears when scrolled to the end
Requirements
- PHP 8.1+
- Laravel 10+
- Filament 4.x
License
MIT License. See LICENSE for more information.
统计信息
- 总下载量: 59
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-01