zoltantorok/filament-drag-and-scroll
Add Shift+drag horizontal scrolling to Filament tables with this zero-config plugin. Just install via composer and call ->dragAndScroll() on your panel. Includes tooltip feedback, per-panel toggling, and 13 built-in translations.
Horizontal table scrolling in Filament can be frustrating, especially for users with basic mice that lack a horizontal scroll wheel, trackball users, or anyone working with accessibility needs. This package solves that problem by letting users hold Shift and drag to scroll tables horizontally with ease.
composer require zoltantorok/filament-drag-and-scroll
Add ->dragAndScroll() to your panel provider:
use Filament\Panel;
use Filament\PanelProvider;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login()
->dragAndScroll();
}
}
That's it. Your users can now hold Shift and drag to scroll any table horizontally.
->dragAndScroll(false)
Or simply don't call the method on panels where you don't need it.
The interaction is designed to stay out of the way. It doesn't interfere with normal table usage, text selection, or other Filament features.
The package uses Laravel's translation system and automatically detects your app locale. No configuration required.
| Language | Code |
|---|---|
| English | en |
| Spanish | es |
| French | fr |
| German | de |
| Italian | it |
| Portuguese | pt |
| Dutch | nl |
| Russian | ru |
| Chinese | zh |
| Japanese | ja |
| Korean | ko |
| Hungarian | hu |
| Romanian | ro |
Publish the translation files to override them:
php artisan vendor:publish --tag="filament-drag-and-scroll-views"
Or create your own in resources/lang/vendor/filament-drag-and-scroll/{locale}/messages.php:
<?php
return [
'dragToScrollHorizontally' => 'Your custom message',
'releaseShiftToExit' => 'Your custom exit message',
];
Assets are registered automatically. If you need to publish them manually:
php artisan vendor:publish --tag="filament-drag-and-scroll-assets" --force
Contributions are welcome! Feel free to submit a pull request.
The MIT License (MIT). Please see LICENSE for more information.
How can I help you explore Laravel packages today?