Limit Filament columns length showing a tooltip when text exceeds
You can install the package via composer:
composer require defstudio/filament-column-length-limiter
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()
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.