https://github.com/dillingham/nova-index-textarea
Nova package for showing textarea content on index with limits
https://github.com/dillingham/nova-index-textarea
laravel laravel-nova
Last synced: about 1 year ago
JSON representation
Nova package for showing textarea content on index with limits
- Host: GitHub
- URL: https://github.com/dillingham/nova-index-textarea
- Owner: dillingham
- License: mit
- Created: 2019-02-06T16:55:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-06T18:27:40.000Z (about 3 years ago)
- Last Synced: 2024-10-29T05:48:40.251Z (over 1 year ago)
- Topics: laravel, laravel-nova
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 15
- Watchers: 1
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Nova Index Textarea
[](https://packagist.org/packages/dillingham/nova-index-textarea)
[](https://packagist.org/packages/dillingham/nova-index-textarea) [](https://twitter.com/im_brian_d)
Nova package for showing textarea content on index with limits
### Install
```bash
composer require dillingham/nova-index-textarea
```
### Usage
This package adds two methods to the existing `Textarea` Nova field
```php
use Laravel\Nova\Fields\Textarea;
```
```php
Textarea::make('Description')->showOnIndex()->limit(10)
```
### Options
`limit($amount, $ending='...')`
### Sidenote
Add `->showAlways()` to turn off toggling on detail