Table Drag Scroll plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

Table Drag Scroll

Community

A lightweight Filament plugin that allows users to horizontally drag wide tables using the mouse, supporting RTL and SPA while preserving button, link, and sorting functionalities.

Tags: Table Column Tables
Supported versions:
5.x 4.x
Majid Shafik Al-Nashri avatar Author: Majid Shafik Al-Nashri

Package health

Beta

Automated checks of this plugin's Composer package

78 / 100
Security 61
Maintenance 100
Ecosystem 100
15 checks
  • Failed: GitHub Actions pinned to SHA View details on Plumb
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Failed: Dependabot or Renovate configured No dependency updater configuration found. View details on Plumb
  • Skipped: Dependency update cooldown configured
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 2 days ago; last release 2 days ago.
  • Passed: composer.lock not committed by library composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 23 hours ago

Documentation

Latest Version on Packagist Tests Total Downloads

Table Drag Scroll Demo

Grab and drag horizontally scrollable Filament tables with a mouse. The package works with Filament panels and standalone tables, including RTL layouts, Livewire updates, and SPA navigation.

#Features

  • Automatically detects horizontally scrollable Filament tables.
  • Uses native Pointer Events and the primary mouse button.
  • Preserves links, buttons, inputs, sorting, and reordering controls.
  • Prevents accidental row clicks after a real drag.
  • Cancels when the gesture is primarily vertical.
  • Requires no JavaScript build step and does not modify Filament vendor files.

#Requirements

  • PHP 8.2 or newer.
  • Filament 5.x.

#Installation

Install the package through Composer:

composer require majid-shafik/filament-table-drag-scroll

Publish Filament assets, then refresh the browser:

php artisan filament:assets

No panel provider changes are required. The package is enabled automatically through Laravel package discovery.

#Configuration

The defaults work for standard Filament tables. To customize them, publish the config file:

php artisan vendor:publish --tag="filament-table-drag-scroll-config"

You may disable the behavior, change the drag threshold, or add selectors that must remain interactive:

return [
    'enabled' => true,
    'drag_threshold' => 6,
    'excluded_selectors' => [
        'a',
        'button',
        'input',
        'select',
        'textarea',
        'label',
        '[contenteditable="true"]',
        '[draggable="true"]',
        '[role="button"]',
        '[x-sortable-handle]',
        '.fi-ta-reorder-handle',
    ],
];

After changing package assets, run php artisan filament:assets again.

#Testing

composer test
composer test:lint
composer analyse
node --check resources/js/table-drag-scroll.js

#Changelog

See CHANGELOG.md for release history.

#Security

Please report security issues privately as described in SECURITY.md.

#License

The MIT License. See LICENSE.md.

The author

Majid Shafik Al-Nashri avatar Author: Majid Shafik Al-Nashri

I am a passionate software developer with a strong focus on building robust web applications using PHP and Laravel. Over the past few years, I have developed a deep appreciation for the TALL stack and love utilizing Filament to create elegant, user-friendly admin panels and interfaces. When I am not writing code or contributing to open-source projects, I enjoy exploring new web technologies and sharing my knowledge with the developer community

Plugins
2
Stars
3

From the same author