Download the PHP package wagnerbugs/filament-hover-scroll-column without Composer
On this page you can find all versions of the php package wagnerbugs/filament-hover-scroll-column. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wagnerbugs/filament-hover-scroll-column
More information about wagnerbugs/filament-hover-scroll-column
Files in wagnerbugs/filament-hover-scroll-column
Package filament-hover-scroll-column
Short Description A Filament table column that smoothly scrolls overflowing text horizontally on hover.
License MIT
Homepage https://github.com/wagnerbugs/filament-hover-scroll-column
Informations about the package filament-hover-scroll-column
Filament Hover Scroll Column
A Filament table column that smoothly scrolls overflowing text horizontally when the user hovers over the cell — a clean "marquee on hover" for long values in narrow columns. No build step, no extra CSS or JavaScript: the animation is driven by inline Alpine.js, which Filament already ships.
Compatible with Filament v4 and v5 (Livewire v3 and v4).
Installation
That's it. The column registers its own view automatically, so there is nothing to publish.
Usage
Use it anywhere you would use a TextColumn:
It also works with relationship and array state, just like TextColumn:
Options
| Method | Default | Description |
|---|---|---|
viewportWidth(string\|Closure\|null) |
'200px' |
Fixed visible width of the cell. Anything wider scrolls on hover. |
scrollSpeed(int\|Closure) |
50 |
Scrolling speed in pixels per second. |
edgePause(int\|Closure) |
600 |
Pause in milliseconds before scrolling starts and after it returns. |
If the text fits within viewportWidth, nothing animates — the column behaves like a normal truncated cell.
Good to know
This column overrides Filament's text rendering to inject the scrolling wrapper, so the
visual extras of TextColumn (badge(), color(), icon(), copyable(), url(), weight(), lineClamp())
do not apply. State formatting (formatStateUsing(), searchable(), sortable()) works
as usual. If you need one of those visual extras, adapt the Blade view in
resources/views/hover-scroll-column.blade.php.
Requirements
- PHP 8.3+ (uses the
#[\Override]attribute; drop it and thephpconstraint can be^8.2) - Filament v4 or v5
License
The MIT License (MIT). See LICENSE.md.
All versions of filament-hover-scroll-column with dependencies
filament/tables Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.16