https://github.com/defstudio/filament-column-length-limiter
Limit Filament columns length showing a tooltip when text too long
https://github.com/defstudio/filament-column-length-limiter
Last synced: 7 months ago
JSON representation
Limit Filament columns length showing a tooltip when text too long
- Host: GitHub
- URL: https://github.com/defstudio/filament-column-length-limiter
- Owner: defstudio
- License: mit
- Created: 2025-01-14T16:52:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-23T09:50:15.000Z (11 months ago)
- Last Synced: 2025-06-26T12:15:04.942Z (11 months ago)
- Language: PHP
- Size: 120 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# About
[](https://packagist.org/packages/defstudio/filament-column-length-limiter)
[](https://packagist.org/packages/defstudio/filament-column-length-limiter)
Limit Filament columns length showing a tooltip when text exceeds
 
## Installation
You can install the package via composer:
```bash
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
```php
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:
```php
TextColumn::make('description')
->label('Post Description')
->limitWithTooltip()
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Fabio Ivona](https://github.com/fabio-ivona)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.