defstudio / filament-column-length-limiter
Limit Filament columns length showing a tooltip when text exceeds
Fund package maintenance!
defstudio
Installs: 1 949
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- filament/support: ^3.0
- filament/tables: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
README
Limit Filament columns length showing a tooltip when text exceeds
Installation
You can install the package via composer:
composer require defstudio/filament-column-length-limiter
Usage
After installation, just call ->limitWithTooltip(xx)
in one of your table columns to automatically limit it's length and showing a nice tooltip on hover with full content
TextColumn::make('description') ->label('Post Description') ->limitWithTooltip(40)
if no length is set, the column will try to take all available space, cutting its length in case of overflow, still showing the tooltip only if its content is cut:
TextColumn::make('description') ->label('Post Description') ->limitWithTooltip()
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.